#7858CB#7858CB
#7858CB is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.1% C 0.171 H 292.7°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).
Color values
| HEX | #7858CB |
|---|---|
| RGB | rgb(120, 88, 203) |
| HSL | hsl(257, 53%, 57%) |
| HSV | hsv(257, 57%, 80%) |
| CMYK | cmyk(40.9%, 56.7%, 0%, 20.4%) |
| CIE-LAB | lab(46.02, 39.72, -55.45) |
| CIE-LCH | lch(46.02, 68.21, 305.61°) |
| OKLab | oklab(55.13% 0.0661 -0.1577) |
| OKLCH | oklch(55.13% 0.171 292.7) |
| XYZ | xyz(22.0120, 15.2837, 58.2786) |
| Luminance | 0.1528 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.42
Slate Blue
#6A5ACD
ΔE00 2.89
Iris
#6258C4
ΔE00 4.30
Purpley
#8756E4
ΔE00 4.34
Dark Periwinkle
#665FD1
ΔE00 4.46
Royal Purple
#7851A9
ΔE00 6.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7858CB #ABCB58
analogous
#5872CB #7858CB #B258CB
triadic
#7858CB #CB7858 #58CB78
tetradic
#7858CB #CB5872 #ABCB58 #58CBB2
square
#7858CB #CB5872 #ABCB58 #58CBB2
split-complementary
#7858CB #CBB258 #72CB58
monochromatic
#412881 #5837AF #7858CB #9E87DA #C3B5E8
Accessibility & contrast
On white
5.18
#7858CB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.06
#7858CB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7858CB
5.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7858CB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7858CB | 1.00 | 5.18 | 4.06 | 5.18 |
| #FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#186FCF
Deuteranopia (green-blind)
#236BC8
Tritanopia (blue-blind)
#627189
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #7858cb; /* rgb */ color: rgb(120, 88, 203); /* oklch */ color: oklch(55.1% 0.171 292.7);
Tailwind
colors: {
custom: {
50: '#a488db',
500: '#7858cb',
950: '#000000',
},
}SCSS
$custom: #7858cb; $custom-light: #a488db; $custom-dark: #000000;
JSON
{
"hex": "#7858cb",
"rgb": {
"r": 120,
"g": 88,
"b": 203
},
"hsl": {
"h": 256.696,
"s": 52.511,
"l": 57.059
},
"oklch": {
"l": 0.55127,
"c": 0.17104,
"h": 292.7
},
"luminance": 0.15284
}Semantic roles & 50–950 ramp
primary
#7858CB
secondary
#CAD7A8
accent
#DC4CB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83