#7157CF#7157CF
#7157CF is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.6% C 0.178 H 289.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).
Color values
| HEX | #7157CF |
|---|---|
| RGB | rgb(113, 87, 207) |
| HSL | hsl(253, 56%, 58%) |
| HSV | hsv(253, 58%, 81%) |
| CMYK | cmyk(45.4%, 58%, 0%, 18.8%) |
| CIE-LAB | lab(45.40, 39.88, -58.78) |
| CIE-LCH | lch(45.40, 71.03, 304.15°) |
| OKLab | oklab(54.6% 0.0582 -0.1677) |
| OKLCH | oklch(54.6% 0.178 289.1) |
| XYZ | xyz(21.4775, 14.8313, 60.7505) |
| Luminance | 0.1483 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 1.22
Slate Blue
#6A5ACD
ΔE00 1.67
Iris
#6258C4
ΔE00 3.22
Dark Periwinkle
#665FD1
ΔE00 3.43
Purpley
#8756E4
ΔE00 4.81
Warm Blue
#4B57DB
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7157CF #B5CF57
analogous
#5779CF #7157CF #AD57CF
triadic
#7157CF #CF7157 #57CF71
tetradic
#7157CF #CF5779 #B5CF57 #57CFAD
square
#7157CF #CF5779 #B5CF57 #57CFAD
split-complementary
#7157CF #CFAD57 #79CF57
monochromatic
#3B2685 #5034B5 #7157CF #9987DD #C1B6EA
Accessibility & contrast
On white
5.29
#7157CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.97
#7157CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7157CF
5.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7157CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7157CF | 1.00 | 5.29 | 3.97 | 5.29 |
| #FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.97 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#006ED3
Deuteranopia (green-blind)
#0169CC
Tritanopia (blue-blind)
#54728B
Achromatopsia (no color)
#6B6B6B
Design tokens & code
CSS
--color: #7157cf; /* rgb */ color: rgb(113, 87, 207); /* oklch */ color: oklch(54.6% 0.178 289.1);
Tailwind
colors: {
custom: {
50: '#a087de',
500: '#7157cf',
950: '#000000',
},
}SCSS
$custom: #7157cf; $custom-light: #a087de; $custom-dark: #000000;
JSON
{
"hex": "#7157cf",
"rgb": {
"r": 113,
"g": 87,
"b": 207
},
"hsl": {
"h": 253,
"s": 55.556,
"l": 57.647
},
"oklch": {
"l": 0.54599,
"c": 0.17754,
"h": 289.1
},
"luminance": 0.14832
}Semantic roles & 50–950 ramp
primary
#7157CF
secondary
#CFD9A9
accent
#DF49BE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83