#7151B2#7151B2
#7151B2 is a mid, vivid violet. Relative luminance 0.126; OKLCH L 51.6% C 0.149 H 296.0°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).
Color values
| HEX | #7151B2 |
|---|---|
| RGB | rgb(113, 81, 178) |
| HSL | hsl(260, 39%, 51%) |
| HSV | hsv(260, 54%, 70%) |
| CMYK | cmyk(36.5%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(42.17, 35.26, -47.13) |
| CIE-LCH | lch(42.17, 58.86, 306.80°) |
| OKLab | oklab(51.61% 0.0651 -0.1335) |
| OKLCH | oklch(51.61% 0.149 296) |
| XYZ | xyz(17.7863, 12.6096, 43.6077) |
| Luminance | 0.1261 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.61
Iris
#6258C4
ΔE00 5.22
Slate Blue
#6A5ACD
ΔE00 5.59
Light Indigo
#6D5ACF
ΔE00 5.61
Bluey Purple
#6241C7
ΔE00 6.18
Deep Lavender
#8D5EB7
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7151B2 #92B251
analogous
#5161B2 #7151B2 #A151B2
triadic
#7151B2 #B27151 #51B271
tetradic
#7151B2 #B25161 #92B251 #51B2A1
square
#7151B2 #B25161 #92B251 #51B2A1
split-complementary
#7151B2 #B2A151 #61B251
monochromatic
#3B2A5F #563D89 #7151B2 #947BC5 #B6A6D8
Accessibility & contrast
On white
5.96
#7151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#7151B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7151B2
5.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7151B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7151B2 | 1.00 | 5.96 | 3.52 | 5.96 |
| #FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2764B5
Deuteranopia (green-blind)
#3062B0
Tritanopia (blue-blind)
#62657A
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7151b2; /* rgb */ color: rgb(113, 81, 178); /* oklch */ color: oklch(51.6% 0.149 296.0);
Tailwind
colors: {
custom: {
50: '#9d83c9',
500: '#7151b2',
950: '#000000',
},
}SCSS
$custom: #7151b2; $custom-light: #9d83c9; $custom-dark: #000000;
JSON
{
"hex": "#7151b2",
"rgb": {
"r": 113,
"g": 81,
"b": 178
},
"hsl": {
"h": 259.794,
"s": 38.645,
"l": 50.784
},
"oklch": {
"l": 0.51613,
"c": 0.14854,
"h": 296
},
"luminance": 0.1261
}Semantic roles & 50–950 ramp
primary
#7151B2
secondary
#B7C59A
accent
#CF59A8
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0F0A13
muted
#7E7C82