#7851F2#7851F2
#7851F2 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.0% C 0.228 H 288.1°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).
Color values
| HEX | #7851F2 |
|---|---|
| RGB | rgb(120, 81, 242) |
| HSL | hsl(255, 86%, 63%) |
| HSV | hsv(255, 67%, 95%) |
| CMYK | cmyk(50.4%, 66.5%, 0%, 5.1%) |
| CIE-LAB | lab(47.35, 54.45, -75.45) |
| CIE-LCH | lch(47.35, 93.05, 305.81°) |
| OKLab | oklab(56.97% 0.0706 -0.2165) |
| OKLCH | oklch(56.97% 0.228 288.1) |
| XYZ | xyz(26.7105, 16.2875, 85.7236) |
| Luminance | 0.1629 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.34
Light Indigo
#6D5ACF
ΔE00 5.37
Purpleish Blue
#6140EF
ΔE00 5.40
Bluish Purple
#703BE7
ΔE00 5.64
Slate Blue
#6A5ACD
ΔE00 5.83
Mediumslateblue
#7B68EE
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7851F2 #CBF251
analogous
#517AF2 #7851F2 #C851F2
triadic
#7851F2 #F27851 #51F278
tetradic
#7851F2 #F2517A #CBF251 #51F2C8
square
#7851F2 #F2517A #CBF251 #51F2C8
split-complementary
#7851F2 #F2C851 #7AF251
monochromatic
#380EBB #4C18EE #7851F2 #A48AF6 #D0C3FB
Accessibility & contrast
On white
4.93
#7851F2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.26
#7851F2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7851F2
4.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7851F2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7851F2 | 1.00 | 4.93 | 4.26 | 4.93 |
| #FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074F7
Deuteranopia (green-blind)
#006CEF
Tritanopia (blue-blind)
#4B7A9B
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #7851f2; /* rgb */ color: rgb(120, 81, 242); /* oklch */ color: oklch(57.0% 0.228 288.1);
Tailwind
colors: {
custom: {
50: '#a984f7',
500: '#7851f2',
950: '#000000',
},
}SCSS
$custom: #7851f2; $custom-light: #a984f7; $custom-dark: #000000;
JSON
{
"hex": "#7851f2",
"rgb": {
"r": 120,
"g": 81,
"b": 242
},
"hsl": {
"h": 254.534,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.56969,
"c": 0.22776,
"h": 288.1
},
"luminance": 0.16289
}Semantic roles & 50–950 ramp
primary
#7851F2
secondary
#DEECB3
accent
#E303AC
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85