#7151B0#7151B0
#7151B0 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 51.5% C 0.146 H 296.5°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).
Color values
| HEX | #7151B0 |
|---|---|
| RGB | rgb(113, 81, 176) |
| HSL | hsl(260, 38%, 50%) |
| HSV | hsv(260, 54%, 69%) |
| CMYK | cmyk(35.8%, 54%, 0%, 31%) |
| CIE-LAB | lab(42.05, 34.72, -46.15) |
| CIE-LCH | lch(42.05, 57.75, 306.95°) |
| OKLab | oklab(51.48% 0.065 -0.1306) |
| OKLCH | oklch(51.48% 0.146 296.5) |
| XYZ | xyz(17.5870, 12.5299, 42.5578) |
| Luminance | 0.1253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple
#7851A9
ΔE00 2.33
Iris
#6258C4
ΔE00 5.48
Slate Blue
#6A5ACD
ΔE00 5.89
Light Indigo
#6D5ACF
ΔE00 5.92
Bluey Purple
#6241C7
ΔE00 6.42
Deep Lavender
#8D5EB7
ΔE00 7.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#7151B0 #90B051
analogous
#5160B0 #7151B0 #A151B0
triadic
#7151B0 #B07151 #51B071
tetradic
#7151B0 #B05160 #90B051 #51B0A1
square
#7151B0 #B05160 #90B051 #51B0A1
split-complementary
#7151B0 #B0A151 #60B051
monochromatic
#3B2A5D #563D87 #7151B0 #937BC3 #B6A5D6
Accessibility & contrast
On white
5.99
#7151B0 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.51
#7151B0 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #7151B0
5.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##7151B0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##7151B0 | 1.00 | 5.99 | 3.51 | 5.99 |
| #FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A64B3
Deuteranopia (green-blind)
#3362AE
Tritanopia (blue-blind)
#626479
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #7151b0; /* rgb */ color: rgb(113, 81, 176); /* oklch */ color: oklch(51.5% 0.146 296.5);
Tailwind
colors: {
custom: {
50: '#9d83c8',
500: '#7151b0',
950: '#000000',
},
}SCSS
$custom: #7151b0; $custom-light: #9d83c8; $custom-dark: #000000;
JSON
{
"hex": "#7151b0",
"rgb": {
"r": 113,
"g": 81,
"b": 176
},
"hsl": {
"h": 260.211,
"s": 37.549,
"l": 50.392
},
"oklch": {
"l": 0.51482,
"c": 0.14592,
"h": 296.5
},
"luminance": 0.1253
}Semantic roles & 50–950 ramp
primary
#7151B0
secondary
#B5C499
accent
#CE5AA7
background
#F9F8FC
surface
#F2EFF8
border
#CCCAD1
text
#0F0A13
muted
#7E7C82