#7157DC#7157DC
#7157DC is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.5% C 0.194 H 287.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).
Color values
| HEX | #7157DC |
|---|---|
| RGB | rgb(113, 87, 220) |
| HSL | hsl(252, 66%, 60%) |
| HSV | hsv(252, 60%, 86%) |
| CMYK | cmyk(48.6%, 60.5%, 0%, 13.7%) |
| CIE-LAB | lab(46.30, 43.63, -64.76) |
| CIE-LCH | lch(46.30, 78.08, 303.97°) |
| OKLab | oklab(55.54% 0.0577 -0.1853) |
| OKLCH | oklch(55.54% 0.194 287.3) |
| XYZ | xyz(23.1327, 15.4934, 69.4679) |
| Luminance | 0.1549 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.12
Slate Blue
#6A5ACD
ΔE00 2.59
Dark Periwinkle
#665FD1
ΔE00 3.55
Purpley
#8756E4
ΔE00 4.00
Iris
#6258C4
ΔE00 4.35
Warm Blue
#4B57DB
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7157DC #C2DC57
analogous
#5780DC #7157DC #B357DC
triadic
#7157DC #DC7157 #57DC71
tetradic
#7157DC #DC5780 #C2DC57 #57DCB3
square
#7157DC #DC5780 #C2DC57 #57DCB3
split-complementary
#7157DC #DCB357 #80DC57
monochromatic
#372099 #4A2ACB #7157DC #9C8AE7 #C7BCF1
Accessibility & contrast
On white
5.12
#7157DC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.10
#7157DC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7157DC
5.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7157DC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7157DC | 1.00 | 5.12 | 4.10 | 5.12 |
| #FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.10 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0071E0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#4C7691
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #7157dc; /* rgb */ color: rgb(113, 87, 220); /* oklch */ color: oklch(55.5% 0.194 287.3);
Tailwind
colors: {
custom: {
50: '#a287e8',
500: '#7157dc',
950: '#000000',
},
}SCSS
$custom: #7157dc; $custom-light: #a287e8; $custom-dark: #000000;
JSON
{
"hex": "#7157dc",
"rgb": {
"r": 113,
"g": 87,
"b": 220
},
"hsl": {
"h": 251.729,
"s": 65.517,
"l": 60.196
},
"oklch": {
"l": 0.55544,
"c": 0.19409,
"h": 287.3
},
"luminance": 0.15494
}Semantic roles & 50–950 ramp
primary
#7157DC
secondary
#D7E1AE
accent
#CD18AA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84