#9f7fea
#9f7fea converts to rgb(159, 127, 234) and hsl(258, 72%, 71%). Its nearest Tailwind CSS token is violet-400.
01
Conversions
02
WCAG contrast
| Background | Ratio | AA text | AA large | AAA text |
|---|---|---|---|---|
| white | 3.14:1 | fail | pass | fail |
| black | 6.70:1 | pass | pass | fail |
| slate-900 | 5.69:1 | pass | pass | fail |
| gray-100 | 2.85:1 | fail | fail | fail |
Ratios are computed from WCAG 2.x relative luminance. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1.
03
Tints and shades
Lightness ladder in HSL space, from the lightest tint to the darkest shade of #9f7fea.
04
Similar colors in the library
Nearest swatches by perceptual OKLab distance across all curated style palettes.
05
AI prompt snippet
Use #9f7fea (rgb(159, 127, 234), nearest Tailwind token violet-400) as an accent. Keep text contrast at least 4.5:1 — this color scores 3.14:1 on white and 6.7:1 on black.
Paste this into ChatGPT, Claude, Cursor, or v0 to use #9f7fea with correct contrast constraints. Browse all palette colors.