#7857DB#7857DB
#7857DB is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.1% C 0.193 H 290.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).
Color values
| HEX | #7857DB |
|---|---|
| RGB | rgb(120, 87, 219) |
| HSL | hsl(255, 65%, 60%) |
| HSV | hsv(255, 60%, 86%) |
| CMYK | cmyk(45.2%, 60.3%, 0%, 14.1%) |
| CIE-LAB | lab(46.87, 44.74, -63.23) |
| CIE-LCH | lch(46.87, 77.46, 305.28°) |
| OKLab | oklab(56.09% 0.0669 -0.1806) |
| OKLCH | oklch(56.09% 0.193 290.3) |
| XYZ | xyz(23.9365, 15.9231, 68.8164) |
| Luminance | 0.1592 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.71
Purpley
#8756E4
ΔE00 2.89
Slate Blue
#6A5ACD
ΔE00 3.30
Dark Periwinkle
#665FD1
ΔE00 4.38
Iris
#6258C4
ΔE00 5.13
Mediumslateblue
#7B68EE
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7857DB #BADB57
analogous
#5778DB #7857DB #BA57DB
triadic
#7857DB #DB7857 #57DB78
tetradic
#7857DB #DB5778 #BADB57 #57DBBA
square
#7857DB #DB5778 #BADB57 #57DBBA
split-complementary
#7857DB #DBBA57 #78DB57
monochromatic
#3E2097 #532BCA #7857DB #A089E6 #C9BCF1
Accessibility & contrast
On white
5.02
#7857DB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.18
#7857DB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7857DB
5.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7857DB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7857DB | 1.00 | 5.02 | 4.18 | 5.02 |
| #FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#006CD8
Tritanopia (blue-blind)
#5A7591
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7857db; /* rgb */ color: rgb(120, 87, 219); /* oklch */ color: oklch(56.1% 0.193 290.3);
Tailwind
colors: {
custom: {
50: '#a688e7',
500: '#7857db',
950: '#000000',
},
}SCSS
$custom: #7857db; $custom-light: #a688e7; $custom-dark: #000000;
JSON
{
"hex": "#7857db",
"rgb": {
"r": 120,
"g": 87,
"b": 219
},
"hsl": {
"h": 255,
"s": 64.706,
"l": 60
},
"oklch": {
"l": 0.56093,
"c": 0.1926,
"h": 290.3
},
"luminance": 0.15924
}Semantic roles & 50–950 ramp
primary
#7857DB
secondary
#D4E0AD
accent
#E840BE
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84