#7951F2#7951F2
#7951F2 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 57.1% C 0.228 H 288.4°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #7951F2 |
|---|---|
| RGB | rgb(121, 81, 242) |
| HSL | hsl(255, 86%, 63%) |
| HSV | hsv(255, 67%, 95%) |
| CMYK | cmyk(50%, 66.5%, 0%, 5.1%) |
| CIE-LAB | lab(47.44, 54.61, -75.30) |
| CIE-LCH | lch(47.44, 93.02, 305.95°) |
| OKLab | oklab(57.06% 0.0719 -0.216) |
| OKLCH | oklch(57.06% 0.228 288.4) |
| XYZ | xyz(26.8499, 16.3594, 85.7301) |
| Luminance | 0.1636 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.21
Light Indigo
#6D5ACF
ΔE00 5.43
Purpleish Blue
#6140EF
ΔE00 5.51
Bluish Purple
#703BE7
ΔE00 5.69
Slate Blue
#6A5ACD
ΔE00 5.89
Mediumslateblue
#7B68EE
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7951F2 #CAF251
analogous
#5179F2 #7951F2 #C951F2
triadic
#7951F2 #F27951 #51F279
tetradic
#7951F2 #F25179 #CAF251 #51F2C9
square
#7951F2 #F25179 #CAF251 #51F2C9
split-complementary
#7951F2 #F2C951 #79F251
monochromatic
#390EBB #4D18EE #7951F2 #A58AF6 #D1C3FB
Accessibility & contrast
On white
4.92
#7951F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#7951F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7951F2
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7951F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7951F2 | 1.00 | 4.92 | 4.27 | 4.92 |
| #FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006CEF
Tritanopia (blue-blind)
#4D799B
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #7951f2; /* rgb */ color: rgb(121, 81, 242); /* oklch */ color: oklch(57.1% 0.228 288.4);
Tailwind
colors: {
custom: {
50: '#a984f7',
500: '#7951f2',
950: '#000000',
},
}SCSS
$custom: #7951f2; $custom-light: #a984f7; $custom-dark: #000000;
JSON
{
"hex": "#7951f2",
"rgb": {
"r": 121,
"g": 81,
"b": 242
},
"hsl": {
"h": 254.907,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.57058,
"c": 0.22771,
"h": 288.4
},
"luminance": 0.16361
}Semantic roles & 50–950 ramp
primary
#7951F2
secondary
#DEECB3
accent
#E303AB
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85