#7951E2#7951E2
#7951E2 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.8% C 0.209 H 290.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #7951E2 |
|---|---|
| RGB | rgb(121, 81, 226) |
| HSL | hsl(257, 71%, 60%) |
| HSV | hsv(257, 64%, 89%) |
| CMYK | cmyk(46.5%, 64.2%, 0%, 11.4%) |
| CIE-LAB | lab(46.23, 50.19, -68.25) |
| CIE-LCH | lch(46.23, 84.72, 306.33°) |
| OKLab | oklab(55.81% 0.0739 -0.1953) |
| OKLCH | oklch(55.81% 0.209 290.7) |
| XYZ | xyz(24.5512, 15.4399, 73.6234) |
| Luminance | 0.1544 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.89
Light Indigo
#6D5ACF
ΔE00 4.03
Slate Blue
#6A5ACD
ΔE00 4.53
Bluish Purple
#703BE7
ΔE00 5.10
Purpleish Blue
#6140EF
ΔE00 5.35
Dark Periwinkle
#665FD1
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7951E2 #BAE251
analogous
#5171E2 #7951E2 #C251E2
triadic
#7951E2 #E27951 #51E279
tetradic
#7951E2 #E25171 #BAE251 #51E2C2
square
#7951E2 #E25171 #BAE251 #51E2C2
split-complementary
#7951E2 #E2C251 #71E251
monochromatic
#3F1A9E #5423D3 #7951E2 #A185EB #CABAF3
Accessibility & contrast
On white
5.14
#7951E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.09
#7951E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7951E2
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7951E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7951E2 | 1.00 | 5.14 | 4.09 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070E7
Deuteranopia (green-blind)
#006ADF
Tritanopia (blue-blind)
#587492
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7951e2; /* rgb */ color: rgb(121, 81, 226); /* oklch */ color: oklch(55.8% 0.209 290.7);
Tailwind
colors: {
custom: {
50: '#a784ec',
500: '#7951e2',
950: '#000000',
},
}SCSS
$custom: #7951e2; $custom-light: #a784ec; $custom-dark: #000000;
JSON
{
"hex": "#7951e2",
"rgb": {
"r": 121,
"g": 81,
"b": 226
},
"hsl": {
"h": 256.552,
"s": 71.429,
"l": 60.196
},
"oklch": {
"l": 0.55807,
"c": 0.20886,
"h": 290.7
},
"luminance": 0.15441
}Semantic roles & 50–950 ramp
primary
#7951E2
secondary
#D4E3AC
accent
#D3129E
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84