#7157C9#7157C9
#7157C9 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.2% C 0.170 H 290.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).
Color values
| HEX | #7157C9 |
|---|---|
| RGB | rgb(113, 87, 201) |
| HSL | hsl(254, 51%, 56%) |
| HSV | hsv(254, 57%, 79%) |
| CMYK | cmyk(43.8%, 56.7%, 0%, 21.2%) |
| CIE-LAB | lab(45.00, 38.16, -55.98) |
| CIE-LCH | lch(45.00, 67.75, 304.29°) |
| OKLab | oklab(54.18% 0.0582 -0.1595) |
| OKLCH | oklch(54.18% 0.17 290.1) |
| XYZ | xyz(20.7579, 14.5434, 56.9605) |
| Luminance | 0.1454 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 1.61
Slate Blue
#6A5ACD
ΔE00 1.86
Iris
#6258C4
ΔE00 2.98
Dark Periwinkle
#665FD1
ΔE00 3.73
Purpley
#8756E4
ΔE00 5.38
Royal Purple
#7851A9
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7157C9 #AFC957
analogous
#5776C9 #7157C9 #AA57C9
triadic
#7157C9 #C97157 #57C971
tetradic
#7157C9 #C95776 #AFC957 #57C9AA
square
#7157C9 #C95776 #AFC957 #57C9AA
split-complementary
#7157C9 #C9AA57 #76C957
monochromatic
#3C287D #5237AC #7157C9 #9885D8 #BFB4E7
Accessibility & contrast
On white
5.37
#7157C9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.91
#7157C9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7157C9
5.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7157C9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7157C9 | 1.00 | 5.37 | 3.91 | 5.37 |
| #FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#116DCD
Deuteranopia (green-blind)
#1968C7
Tritanopia (blue-blind)
#577087
Achromatopsia (no color)
#6A6A6A
Design tokens & code
CSS
--color: #7157c9; /* rgb */ color: rgb(113, 87, 201); /* oklch */ color: oklch(54.2% 0.170 290.1);
Tailwind
colors: {
custom: {
50: '#9f87da',
500: '#7157c9',
950: '#000000',
},
}SCSS
$custom: #7157c9; $custom-light: #9f87da; $custom-dark: #000000;
JSON
{
"hex": "#7157c9",
"rgb": {
"r": 113,
"g": 87,
"b": 201
},
"hsl": {
"h": 253.684,
"s": 51.351,
"l": 56.471
},
"oklch": {
"l": 0.54177,
"c": 0.16977,
"h": 290.1
},
"luminance": 0.14544
}Semantic roles & 50–950 ramp
primary
#7157C9
secondary
#CBD5A7
accent
#DB4DBA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#0F0B15
muted
#7F7C83