#9255B2#9255B2
#9255B2 is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.8% C 0.151 H 312.8°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).
Color values
| HEX | #9255B2 |
|---|---|
| RGB | rgb(146, 85, 178) |
| HSL | hsl(279, 38%, 52%) |
| HSV | hsv(279, 52%, 70%) |
| CMYK | cmyk(18%, 52.2%, 0%, 30.2%) |
| CIE-LAB | lab(46.74, 41.76, -39.63) |
| CIE-LCH | lch(46.74, 57.57, 316.50°) |
| OKLab | oklab(55.83% 0.1024 -0.1106) |
| OKLCH | oklch(55.83% 0.151 312.8) |
| XYZ | xyz(23.1371, 15.8229, 43.9461) |
| Luminance | 0.1582 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Deep Lavender
#8D5EB7
ΔE00 2.95
Amethyst
#9B5FC0
ΔE00 3.96
Purply
#983FB2
ΔE00 5.04
Royal Purple
#7851A9
ΔE00 5.64
Medium Purple
#9E43A2
ΔE00 5.79
Ugly Purple
#A442A0
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9255B2 #75B255
analogous
#6455B2 #9255B2 #B255A4
triadic
#9255B2 #B29255 #55B292
tetradic
#9255B2 #B26455 #75B255 #55A4B2
square
#9255B2 #B26455 #75B255 #55A4B2
split-complementary
#9255B2 #A4B255 #55B264
monochromatic
#4F2C61 #713F8B #9255B2 #AD7FC5 #C8A9D8
Accessibility & contrast
On white
5.04
#9255B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.16
#9255B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9255B2
5.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9255B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9255B2 | 1.00 | 5.04 | 4.16 | 5.04 |
| #FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3E6CB5
Deuteranopia (green-blind)
#5170B0
Tritanopia (blue-blind)
#8F647B
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #9255b2; /* rgb */ color: rgb(146, 85, 178); /* oklch */ color: oklch(55.8% 0.151 312.8);
Tailwind
colors: {
custom: {
50: '#b487c9',
500: '#9255b2',
950: '#000000',
},
}SCSS
$custom: #9255b2; $custom-light: #b487c9; $custom-dark: #000000;
JSON
{
"hex": "#9255b2",
"rgb": {
"r": 146,
"g": 85,
"b": 178
},
"hsl": {
"h": 279.355,
"s": 37.652,
"l": 51.569
},
"oklch": {
"l": 0.55831,
"c": 0.15073,
"h": 312.8
},
"luminance": 0.15822
}Semantic roles & 50–950 ramp
primary
#9255B2
secondary
#ABC69D
accent
#CE5A82
background
#FBF8FC
surface
#F6F0F8
border
#D0CBD1
text
#110B13
muted
#807C82