#9151D2#9151D2
#9151D2 is a mid, vivid violet. Relative luminance 0.166; OKLCH L 57.1% C 0.193 H 303.7°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).
Color values
| HEX | #9151D2 |
|---|---|
| RGB | rgb(145, 81, 210) |
| HSL | hsl(270, 59%, 57%) |
| HSV | hsv(270, 61%, 82%) |
| CMYK | cmyk(31%, 61.4%, 0%, 17.6%) |
| CIE-LAB | lab(47.70, 51.05, -56.63) |
| CIE-LCH | lch(47.70, 76.25, 312.03°) |
| OKLab | oklab(57.11% 0.1071 -0.1604) |
| OKLCH | oklch(57.11% 0.193 303.7) |
| XYZ | xyz(26.2497, 16.5578, 62.7733) |
| Luminance | 0.1656 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Purpley
#8756E4
ΔE00 3.75
Lightish Purple
#A552E6
ΔE00 4.53
Deep Lavender
#8D5EB7
ΔE00 5.68
Amethyst
#9B5FC0
ΔE00 5.73
Darkorchid
#9932CC
ΔE00 6.01
Lighter Purple
#A55AF4
ΔE00 6.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9151D2 #92D251
analogous
#5152D2 #9151D2 #D151D2
triadic
#9151D2 #D29151 #51D291
tetradic
#9151D2 #D25152 #92D251 #51D2D1
square
#9151D2 #D25152 #92D251 #51D2D1
split-complementary
#9151D2 #D2D151 #52D251
monochromatic
#542386 #722FB7 #9151D2 #B082DF #CEB2EB
Accessibility & contrast
On white
4.87
#9151D2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.31
#9151D2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9151D2
4.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9151D2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9151D2 | 1.00 | 4.87 | 4.31 | 4.87 |
| #FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.31 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0070D6
Deuteranopia (green-blind)
#2F71CF
Tritanopia (blue-blind)
#856C8A
Achromatopsia (no color)
#717171
Design tokens & code
CSS
--color: #9151d2; /* rgb */ color: rgb(145, 81, 210); /* oklch */ color: oklch(57.1% 0.193 303.7);
Tailwind
colors: {
custom: {
50: '#b585e0',
500: '#9151d2',
950: '#000000',
},
}SCSS
$custom: #9151d2; $custom-light: #b585e0; $custom-dark: #000000;
JSON
{
"hex": "#9151d2",
"rgb": {
"r": 145,
"g": 81,
"b": 210
},
"hsl": {
"h": 269.767,
"s": 58.904,
"l": 57.059
},
"oklch": {
"l": 0.57109,
"c": 0.19285,
"h": 303.7
},
"luminance": 0.16558
}Semantic roles & 50–950 ramp
primary
#9151D2
secondary
#C0DAA5
accent
#E24695
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120B15
muted
#817C83