#997AF2#997AF2
#997AF2 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.3% C 0.173 H 293.0°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #997AF2 |
|---|---|
| RGB | rgb(153, 122, 242) |
| HSL | hsl(256, 82%, 71%) |
| HSV | hsv(256, 50%, 95%) |
| CMYK | cmyk(36.8%, 49.6%, 0%, 5.1%) |
| CIE-LAB | lab(59.07, 38.59, -56.38) |
| CIE-LCH | lch(59.07, 68.33, 304.39°) |
| OKLab | oklab(66.29% 0.0676 -0.1595) |
| OKLCH | oklch(66.29% 0.173 293) |
| XYZ | xyz(36.1192, 27.1013, 87.3153) |
| Luminance | 0.2710 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 4.01
Mediumpurple
#9370DB
ΔE00 4.43
Lavender Blue
#8B88F8
ΔE00 5.65
Light Urple
#B36FF6
ΔE00 5.71
Perrywinkle
#8F8CE7
ΔE00 6.50
Mediumslateblue
#7B68EE
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#997AF2 #D3F27A
analogous
#7A97F2 #997AF2 #D57AF2
triadic
#997AF2 #F2997A #7AF299
tetradic
#997AF2 #F27A97 #D3F27A #7AF2D5
square
#997AF2 #F27A97 #D3F27A #7AF2D5
split-complementary
#997AF2 #F2D57A #97F27A
monochromatic
#4916DC #6E42ED #997AF2 #C4B2F7 #EAE3FC
Accessibility & contrast
On white
3.27
#997AF2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.42
#997AF2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #997AF2
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##997AF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##997AF2 | 1.00 | 3.27 | 6.42 | 6.42 |
| #FFFFFF | 3.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4C90F6
Deuteranopia (green-blind)
#518CEF
Tritanopia (blue-blind)
#8392AB
Achromatopsia (no color)
#8E8E8E
Design tokens & code
CSS
--color: #997af2; /* rgb */ color: rgb(153, 122, 242); /* oklch */ color: oklch(66.3% 0.173 293.0);
Tailwind
colors: {
custom: {
50: '#bba1f7',
500: '#997af2',
950: '#000000',
},
}SCSS
$custom: #997af2; $custom-light: #bba1f7; $custom-dark: #000000;
JSON
{
"hex": "#997af2",
"rgb": {
"r": 153,
"g": 122,
"b": 242
},
"hsl": {
"h": 255.5,
"s": 82.192,
"l": 71.373
},
"oklch": {
"l": 0.6629,
"c": 0.17322,
"h": 293
},
"luminance": 0.27102
}Semantic roles & 50–950 ramp
primary
#997AF2
secondary
#EBF3D4
accent
#DF07A7
background
#FBF9FF
surface
#F7F2FF
border
#D0CCD7
text
#120F17
muted
#817E85