#9151E2#9151E2
#9151E2 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 58.2% C 0.211 H 300.2°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).
Color values
| HEX | #9151E2 |
|---|---|
| RGB | rgb(145, 81, 226) |
| HSL | hsl(266, 71%, 60%) |
| HSV | hsv(266, 64%, 89%) |
| CMYK | cmyk(35.8%, 64.2%, 0%, 11.4%) |
| CIE-LAB | lab(48.75, 54.93, -64.04) |
| CIE-LCH | lch(48.75, 84.37, 310.62°) |
| OKLab | oklab(58.21% 0.106 -0.1822) |
| OKLCH | oklch(58.21% 0.211 300.2) |
| XYZ | xyz(28.3436, 17.3954, 73.8011) |
| Luminance | 0.1740 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 2.11
Lightish Purple
#A552E6
ΔE00 3.78
Lighter Purple
#A55AF4
ΔE00 5.21
Electric Purple
#AA23FF
ΔE00 6.52
Darkorchid
#9932CC
ΔE00 7.13
Light Indigo
#6D5ACF
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9151E2 #A2E251
analogous
#5159E2 #9151E2 #DA51E2
triadic
#9151E2 #E29151 #51E291
tetradic
#9151E2 #E25159 #A2E251 #51E2DA
square
#9151E2 #E25159 #A2E251 #51E2DA
split-complementary
#9151E2 #E2DA51 #59E251
monochromatic
#551A9E #7123D3 #9151E2 #B285EB #D3BAF3
Accessibility & contrast
On white
4.69
#9151E2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.48
#9151E2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9151E2
4.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9151E2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9151E2 | 1.00 | 4.69 | 4.48 | 4.69 |
| #FFFFFF | 4.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0073E6
Deuteranopia (green-blind)
#0573DF
Tritanopia (blue-blind)
#7F7192
Achromatopsia (no color)
#747474
Design tokens & code
CSS
--color: #9151e2; /* rgb */ color: rgb(145, 81, 226); /* oklch */ color: oklch(58.2% 0.211 300.2);
Tailwind
colors: {
custom: {
50: '#b785ec',
500: '#9151e2',
950: '#000000',
},
}SCSS
$custom: #9151e2; $custom-light: #b785ec; $custom-dark: #000000;
JSON
{
"hex": "#9151e2",
"rgb": {
"r": 145,
"g": 81,
"b": 226
},
"hsl": {
"h": 266.483,
"s": 71.429,
"l": 60.196
},
"oklch": {
"l": 0.5821,
"c": 0.21076,
"h": 300.2
},
"luminance": 0.17396
}Semantic roles & 50–950 ramp
primary
#9151E2
secondary
#CBE3AC
accent
#D3127E
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#120B16
muted
#817C84