#7951F6#7951F6
#7951F6 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.4% C 0.232 H 287.9°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).
Color values
| HEX | #7951F6 |
|---|---|
| RGB | rgb(121, 81, 246) |
| HSL | hsl(255, 90%, 64%) |
| HSV | hsv(255, 67%, 96%) |
| CMYK | cmyk(50.8%, 67.1%, 0%, 3.5%) |
| CIE-LAB | lab(47.76, 55.72, -77.03) |
| CIE-LCH | lch(47.76, 95.07, 305.88°) |
| OKLab | oklab(57.38% 0.0714 -0.2211) |
| OKLCH | oklch(57.38% 0.232 287.9) |
| XYZ | xyz(27.4573, 16.6023, 88.9287) |
| Luminance | 0.1660 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.46
Purpleish Blue
#6140EF
ΔE00 5.69
Light Indigo
#6D5ACF
ΔE00 5.83
Bluish Purple
#703BE7
ΔE00 5.96
Mediumslateblue
#7B68EE
ΔE00 6.10
Slate Blue
#6A5ACD
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7951F6 #CEF651
analogous
#517CF6 #7951F6 #CB51F6
triadic
#7951F6 #F67951 #51F679
tetradic
#7951F6 #F6517C #CEF651 #51F6CB
square
#7951F6 #F6517C #CEF651 #51F6CB
split-complementary
#7951F6 #F6CB51 #7CF651
monochromatic
#370AC3 #4C17F3 #7951F6 #A68BF9 #D3C5FC
Accessibility & contrast
On white
4.86
#7951F6 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.32
#7951F6 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7951F6
4.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7951F6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7951F6 | 1.00 | 4.86 | 4.32 | 4.86 |
| #FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.32 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.86 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0075FB
Deuteranopia (green-blind)
#006DF3
Tritanopia (blue-blind)
#4A7B9D
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7951f6; /* rgb */ color: rgb(121, 81, 246); /* oklch */ color: oklch(57.4% 0.232 287.9);
Tailwind
colors: {
custom: {
50: '#aa85fa',
500: '#7951f6',
950: '#000000',
},
}SCSS
$custom: #7951f6; $custom-light: #aa85fa; $custom-dark: #000000;
JSON
{
"hex": "#7951f6",
"rgb": {
"r": 121,
"g": 81,
"b": 246
},
"hsl": {
"h": 254.545,
"s": 90.164,
"l": 64.118
},
"oklch": {
"l": 0.5738,
"c": 0.23236,
"h": 287.9
},
"luminance": 0.16604
}Semantic roles & 50–950 ramp
primary
#7951F6
secondary
#E0EEB5
accent
#E600AE
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85