#7157E3#7157E3
#7157E3 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.1% C 0.203 H 286.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).
Color values
| HEX | #7157E3 |
|---|---|
| RGB | rgb(113, 87, 227) |
| HSL | hsl(251, 71%, 62%) |
| HSV | hsv(251, 62%, 89%) |
| CMYK | cmyk(50.2%, 61.7%, 0%, 11%) |
| CIE-LAB | lab(46.81, 45.66, -67.91) |
| CIE-LCH | lch(46.81, 81.84, 303.91°) |
| OKLab | oklab(56.07% 0.0573 -0.1946) |
| OKLCH | oklch(56.07% 0.203 286.4) |
| XYZ | xyz(24.0793, 15.8720, 74.4530) |
| Luminance | 0.1587 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.96
Slate Blue
#6A5ACD
ΔE00 3.39
Purpley
#8756E4
ΔE00 3.84
Dark Periwinkle
#665FD1
ΔE00 3.96
Iris
#6258C4
ΔE00 5.12
Mediumslateblue
#7B68EE
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7157E3 #C9E357
analogous
#5783E3 #7157E3 #B757E3
triadic
#7157E3 #E37157 #57E371
tetradic
#7157E3 #E35783 #C9E357 #57E3B7
square
#7157E3 #E35783 #C9E357 #57E3B7
split-complementary
#7157E3 #E3B757 #83E357
monochromatic
#351BA4 #4624D9 #7157E3 #9D8BEC #CAC0F4
Accessibility & contrast
On white
5.03
#7157E3 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.17
#7157E3 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7157E3
5.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7157E3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7157E3 | 1.00 | 5.03 | 4.17 | 5.03 |
| #FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#006BE0
Tritanopia (blue-blind)
#477895
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #7157e3; /* rgb */ color: rgb(113, 87, 227); /* oklch */ color: oklch(56.1% 0.203 286.4);
Tailwind
colors: {
custom: {
50: '#a288ed',
500: '#7157e3',
950: '#000000',
},
}SCSS
$custom: #7157e3; $custom-light: #a288ed; $custom-dark: #000000;
JSON
{
"hex": "#7157e3",
"rgb": {
"r": 113,
"g": 87,
"b": 227
},
"hsl": {
"h": 251.143,
"s": 71.429,
"l": 61.569
},
"oklch": {
"l": 0.56071,
"c": 0.20285,
"h": 286.4
},
"luminance": 0.15873
}Semantic roles & 50–950 ramp
primary
#7157E3
secondary
#DBE5B1
accent
#D312B0
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84