#9237B1#9237B1
#9237B1 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.8% C 0.194 H 316.2°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).
Color values
| HEX | #9237B1 |
|---|---|
| RGB | rgb(146, 55, 177) |
| HSL | hsl(285, 53%, 45%) |
| HSV | hsv(285, 69%, 69%) |
| CMYK | cmyk(17.5%, 68.9%, 0%, 30.6%) |
| CIE-LAB | lab(41.25, 56.26, -47.80) |
| CIE-LCH | lch(41.25, 73.83, 319.65°) |
| OKLab | oklab(51.81% 0.1402 -0.1343) |
| OKLCH | oklch(51.81% 0.194 316.2) |
| XYZ | xyz(21.1548, 12.0185, 42.7919) |
| Luminance | 0.1202 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 2.20
Darkorchid
#9932CC
ΔE00 4.09
Barney
#AC1DB8
ΔE00 4.61
Medium Purple
#9E43A2
ΔE00 5.44
Darkviolet
#9400D3
ΔE00 6.45
Purple (survey)
#7E1E9C
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9237B1 #56B137
analogous
#5537B1 #9237B1 #B13793
triadic
#9237B1 #B19237 #37B192
tetradic
#9237B1 #B15537 #56B137 #3793B1
square
#9237B1 #B15537 #56B137 #3793B1
split-complementary
#9237B1 #93B137 #37B155
monochromatic
#451A54 #6B2882 #9237B1 #AF5ACC #C588DA
Accessibility & contrast
On white
6.17
#9237B1 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#9237B1 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9237B1
6.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9237B1 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9237B1 | 1.00 | 6.17 | 3.40 | 6.17 |
| #FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CB5
Deuteranopia (green-blind)
#3764AE
Tritanopia (blue-blind)
#904F70
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #9237b1; /* rgb */ color: rgb(146, 55, 177); /* oklch */ color: oklch(51.8% 0.194 316.2);
Tailwind
colors: {
custom: {
50: '#b675c9',
500: '#9237b1',
950: '#000000',
},
}SCSS
$custom: #9237b1; $custom-light: #b675c9; $custom-dark: #000000;
JSON
{
"hex": "#9237b1",
"rgb": {
"r": 146,
"g": 55,
"b": 177
},
"hsl": {
"h": 284.754,
"s": 52.586,
"l": 45.49
},
"oklch": {
"l": 0.51811,
"c": 0.19415,
"h": 316.2
},
"luminance": 0.12018
}Semantic roles & 50–950 ramp
primary
#9237B1
secondary
#91C480
accent
#DC4C70
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#120913
muted
#817B82