#997EF7#997EF7
#997EF7 is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.3% C 0.174 H 291.3°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).
Color values
| HEX | #997EF7 |
|---|---|
| RGB | rgb(153, 126, 247) |
| HSL | hsl(253, 88%, 73%) |
| HSV | hsv(253, 49%, 97%) |
| CMYK | cmyk(38.1%, 49%, 0%, 3.1%) |
| CIE-LAB | lab(60.26, 37.64, -57.25) |
| CIE-LCH | lch(60.26, 68.52, 303.33°) |
| OKLab | oklab(67.27% 0.0631 -0.162) |
| OKLCH | oklch(67.27% 0.174 291.3) |
| XYZ | xyz(37.3817, 28.4084, 91.4915) |
| Luminance | 0.2841 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Periwinkle (survey)
#8E82FE
ΔE00 2.94
Lavender Blue
#8B88F8
ΔE00 4.56
Perrywinkle
#8F8CE7
ΔE00 5.66
Mediumpurple
#9370DB
ΔE00 5.68
Light Urple
#B36FF6
ΔE00 6.50
Light Purple
#BF77F6
ΔE00 7.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#997EF7 #DCF77E
analogous
#7EA0F7 #997EF7 #D57EF7
triadic
#997EF7 #F7997E #7EF799
tetradic
#997EF7 #F77EA0 #DCF77E #7EF7D5
square
#997EF7 #F77EA0 #DCF77E #7EF7D5
split-complementary
#997EF7 #F7D57E #A0F77E
monochromatic
#400FEC #6B44F3 #997EF7 #C7B8FB #E8E2FD
Accessibility & contrast
On white
3.14
#997EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.68
#997EF7 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #997EF7
6.68:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##997EF7 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##997EF7 | 1.00 | 3.14 | 6.68 | 6.68 |
| #FFFFFF | 3.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.68 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.68 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4F93FB
Deuteranopia (green-blind)
#528FF4
Tritanopia (blue-blind)
#8096AF
Achromatopsia (no color)
#919191
Design tokens & code
CSS
--color: #997ef7; /* rgb */ color: rgb(153, 126, 247); /* oklch */ color: oklch(67.3% 0.174 291.3);
Tailwind
colors: {
custom: {
50: '#bba4fa',
500: '#997ef7',
950: '#000000',
},
}SCSS
$custom: #997ef7; $custom-light: #bba4fa; $custom-dark: #000000;
JSON
{
"hex": "#997ef7",
"rgb": {
"r": 153,
"g": 126,
"b": 247
},
"hsl": {
"h": 253.388,
"s": 88.321,
"l": 73.137
},
"oklch": {
"l": 0.67268,
"c": 0.17387,
"h": 291.3
},
"luminance": 0.28409
}Semantic roles & 50–950 ramp
primary
#997EF7
secondary
#EEF5D6
accent
#E501B2
background
#FBFAFF
surface
#F7F4FF
border
#D0CED7
text
#120F17
muted
#817F85