#7851F3#7851F3
#7851F3 is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.0% C 0.229 H 287.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).
Color values
| HEX | #7851F3 |
|---|---|
| RGB | rgb(120, 81, 243) |
| HSL | hsl(254, 87%, 64%) |
| HSV | hsv(254, 67%, 95%) |
| CMYK | cmyk(50.6%, 66.7%, 0%, 4.7%) |
| CIE-LAB | lab(47.43, 54.73, -75.89) |
| CIE-LCH | lch(47.43, 93.56, 305.80°) |
| OKLab | oklab(57.05% 0.0705 -0.2178) |
| OKLCH | oklch(57.05% 0.229 287.9) |
| XYZ | xyz(26.8611, 16.3477, 86.5167) |
| Luminance | 0.1635 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.39
Purpleish Blue
#6140EF
ΔE00 5.44
Light Indigo
#6D5ACF
ΔE00 5.47
Bluish Purple
#703BE7
ΔE00 5.70
Slate Blue
#6A5ACD
ΔE00 5.92
Mediumslateblue
#7B68EE
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7851F3 #CCF351
analogous
#517BF3 #7851F3 #C951F3
triadic
#7851F3 #F37851 #51F378
tetradic
#7851F3 #F3517B #CCF351 #51F3C9
square
#7851F3 #F3517B #CCF351 #51F3C9
split-complementary
#7851F3 #F3C951 #7BF351
monochromatic
#370DBD #4C18EF #7851F3 #A48AF7 #D1C4FB
Accessibility & contrast
On white
4.92
#7851F3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.27
#7851F3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7851F3
4.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7851F3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7851F3 | 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)
#0074F8
Deuteranopia (green-blind)
#006CF0
Tritanopia (blue-blind)
#4A7A9C
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #7851f3; /* rgb */ color: rgb(120, 81, 243); /* oklch */ color: oklch(57.0% 0.229 287.9);
Tailwind
colors: {
custom: {
50: '#a984f8',
500: '#7851f3',
950: '#000000',
},
}SCSS
$custom: #7851f3; $custom-light: #a984f8; $custom-dark: #000000;
JSON
{
"hex": "#7851f3",
"rgb": {
"r": 120,
"g": 81,
"b": 243
},
"hsl": {
"h": 254.444,
"s": 87.097,
"l": 63.529
},
"oklch": {
"l": 0.5705,
"c": 0.22892,
"h": 287.9
},
"luminance": 0.16349
}Semantic roles & 50–950 ramp
primary
#7851F3
secondary
#DFEDB3
accent
#E402AD
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85