#7158DC#7158DC
#7158DC is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.7% C 0.193 H 287.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).
Color values
| HEX | #7158DC |
|---|---|
| RGB | rgb(113, 88, 220) |
| HSL | hsl(251, 65%, 60%) |
| HSV | hsv(251, 60%, 86%) |
| CMYK | cmyk(48.6%, 60%, 0%, 13.7%) |
| CIE-LAB | lab(46.52, 43.06, -64.40) |
| CIE-LCH | lch(46.52, 77.47, 303.76°) |
| OKLab | oklab(55.7% 0.0567 -0.1843) |
| OKLCH | oklch(55.7% 0.193 287.1) |
| XYZ | xyz(23.2143, 15.6564, 69.4951) |
| Luminance | 0.1566 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.04
Slate Blue
#6A5ACD
ΔE00 2.52
Dark Periwinkle
#665FD1
ΔE00 3.35
Purpley
#8756E4
ΔE00 4.02
Iris
#6258C4
ΔE00 4.34
Mediumslateblue
#7B68EE
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7158DC #C3DC58
analogous
#5881DC #7158DC #B358DC
triadic
#7158DC #DC7158 #58DC71
tetradic
#7158DC #DC5881 #C3DC58 #58DCB3
square
#7158DC #DC5881 #C3DC58 #58DCB3
split-complementary
#7158DC #DCB358 #81DC58
monochromatic
#372099 #492BCC #7158DC #9C8BE7 #C7BDF1
Accessibility & contrast
On white
5.08
#7158DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.13
#7158DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7158DC
5.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7158DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7158DC | 1.00 | 5.08 | 4.13 | 5.08 |
| #FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#4C7792
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7158dc; /* rgb */ color: rgb(113, 88, 220); /* oklch */ color: oklch(55.7% 0.193 287.1);
Tailwind
colors: {
custom: {
50: '#a288e8',
500: '#7158dc',
950: '#000000',
},
}SCSS
$custom: #7158dc; $custom-light: #a288e8; $custom-dark: #000000;
JSON
{
"hex": "#7158dc",
"rgb": {
"r": 113,
"g": 88,
"b": 220
},
"hsl": {
"h": 251.364,
"s": 65.347,
"l": 60.392
},
"oklch": {
"l": 0.55704,
"c": 0.19279,
"h": 287.1
},
"luminance": 0.15657
}Semantic roles & 50–950 ramp
primary
#7158DC
secondary
#D8E1AF
accent
#CD18AB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84