#7158CF#7158CF
#7158CF is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.8% C 0.176 H 288.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).
Color values
| HEX | #7158CF |
|---|---|
| RGB | rgb(113, 88, 207) |
| HSL | hsl(253, 55%, 58%) |
| HSV | hsv(253, 57%, 81%) |
| CMYK | cmyk(45.4%, 57.5%, 0%, 18.8%) |
| CIE-LAB | lab(45.63, 39.30, -58.42) |
| CIE-LCH | lch(45.63, 70.41, 303.93°) |
| OKLab | oklab(54.76% 0.0571 -0.1667) |
| OKLCH | oklch(54.76% 0.176 288.9) |
| XYZ | xyz(21.5591, 14.9943, 60.7776) |
| Luminance | 0.1499 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 1.01
Slate Blue
#6A5ACD
ΔE00 1.52
Iris
#6258C4
ΔE00 3.18
Dark Periwinkle
#665FD1
ΔE00 3.21
Purpley
#8756E4
ΔE00 4.82
Warm Blue
#4B57DB
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7158CF #B6CF58
analogous
#587ACF #7158CF #AC58CF
triadic
#7158CF #CF7158 #58CF71
tetradic
#7158CF #CF587A #B6CF58 #58CFAC
square
#7158CF #CF587A #B6CF58 #58CFAC
split-complementary
#7158CF #CFAC58 #7ACF58
monochromatic
#3B2786 #4F34B6 #7158CF #9988DD #C2B7EA
Accessibility & contrast
On white
5.25
#7158CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.00
#7158CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7158CF
5.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7158CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7158CF | 1.00 | 5.25 | 4.00 | 5.25 |
| #FFFFFF | 5.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.00 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006FD3
Deuteranopia (green-blind)
#0869CC
Tritanopia (blue-blind)
#54738B
Achromatopsia (no color)
#6C6C6C
Design tokens & code
CSS
--color: #7158cf; /* rgb */ color: rgb(113, 88, 207); /* oklch */ color: oklch(54.8% 0.176 288.9);
Tailwind
colors: {
custom: {
50: '#a088de',
500: '#7158cf',
950: '#000000',
},
}SCSS
$custom: #7158cf; $custom-light: #a088de; $custom-dark: #000000;
JSON
{
"hex": "#7158cf",
"rgb": {
"r": 113,
"g": 88,
"b": 207
},
"hsl": {
"h": 252.605,
"s": 55.349,
"l": 57.843
},
"oklch": {
"l": 0.54764,
"c": 0.17616,
"h": 288.9
},
"luminance": 0.14995
}Semantic roles & 50–950 ramp
primary
#7158CF
secondary
#CFD9AA
accent
#DF49BF
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#0F0B15
muted
#7F7C83