#7157BF#7157BF
#7157BF is a mid, vivid violet. Relative luminance 0.141; OKLCH L 53.5% C 0.157 H 291.7°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).
Color values
| HEX | #7157BF |
|---|---|
| RGB | rgb(113, 87, 191) |
| HSL | hsl(255, 45%, 55%) |
| HSV | hsv(255, 54%, 75%) |
| CMYK | cmyk(40.8%, 54.5%, 0%, 25.1%) |
| CIE-LAB | lab(44.36, 35.33, -51.22) |
| CIE-LCH | lch(44.36, 62.22, 304.60°) |
| OKLab | oklab(53.5% 0.058 -0.1455) |
| OKLCH | oklch(53.5% 0.157 291.7) |
| XYZ | xyz(19.6197, 14.0881, 50.9657) |
| Luminance | 0.1409 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Indigo
#6D5ACF
ΔE00 2.92
Slate Blue
#6A5ACD
ΔE00 2.96
Iris
#6258C4
ΔE00 3.26
Dark Periwinkle
#665FD1
ΔE00 4.66
Royal Purple
#7851A9
ΔE00 4.89
Purpley
#8756E4
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7157BF #A5BF57
analogous
#5771BF #7157BF #A557BF
triadic
#7157BF #BF7157 #57BF71
tetradic
#7157BF #BF5771 #A5BF57 #57BFA5
square
#7157BF #BF5771 #A5BF57 #57BFA5
split-complementary
#7157BF #BFA557 #71BF57
monochromatic
#3C2B71 #543C9D #7157BF #9683D0 #BCB0E1
Accessibility & contrast
On white
5.50
#7157BF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.82
#7157BF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7157BF
5.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7157BF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7157BF | 1.00 | 5.50 | 3.82 | 5.50 |
| #FFFFFF | 5.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#256AC3
Deuteranopia (green-blind)
#2B67BD
Tritanopia (blue-blind)
#5C6D82
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #7157bf; /* rgb */ color: rgb(113, 87, 191); /* oklch */ color: oklch(53.5% 0.157 291.7);
Tailwind
colors: {
custom: {
50: '#9e87d3',
500: '#7157bf',
950: '#000000',
},
}SCSS
$custom: #7157bf; $custom-light: #9e87d3; $custom-dark: #000000;
JSON
{
"hex": "#7157bf",
"rgb": {
"r": 113,
"g": 87,
"b": 191
},
"hsl": {
"h": 255,
"s": 44.828,
"l": 54.51
},
"oklch": {
"l": 0.53495,
"c": 0.15666,
"h": 291.7
},
"luminance": 0.14089
}Semantic roles & 50–950 ramp
primary
#7157BF
secondary
#C4CFA3
accent
#D553B4
background
#FAF8FD
surface
#F3EFFA
border
#CDCAD3
text
#0F0B14
muted
#7F7C83