#9242C2#9242C2
#9242C2 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.2% C 0.197 H 310.1°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).
Color values
| HEX | #9242C2 |
|---|---|
| RGB | rgb(146, 66, 194) |
| HSL | hsl(278, 51%, 51%) |
| HSV | hsv(278, 66%, 76%) |
| CMYK | cmyk(24.7%, 66%, 0%, 23.9%) |
| CIE-LAB | lab(44.09, 54.97, -53.19) |
| CIE-LCH | lch(44.09, 76.49, 315.94°) |
| OKLab | oklab(54.2% 0.1267 -0.1502) |
| OKLCH | oklch(54.2% 0.197 310.1) |
| XYZ | xyz(23.5380, 13.9029, 52.4721) |
| Luminance | 0.1390 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.76
Purply
#983FB2
ΔE00 3.29
Blueviolet
#8A2BE2
ΔE00 5.99
Vibrant Purple
#AD03DE
ΔE00 6.28
Barney
#AC1DB8
ΔE00 6.34
Royal Purple
#7851A9
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9242C2 #72C242
analogous
#5242C2 #9242C2 #C242B2
triadic
#9242C2 #C29242 #42C292
tetradic
#9242C2 #C25242 #72C242 #42B2C2
square
#9242C2 #C25242 #72C242 #42B2C2
split-complementary
#9242C2 #B2C242 #42C252
monochromatic
#4E2268 #703196 #9242C2 #AD70D1 #C79FE0
Accessibility & contrast
On white
5.55
#9242C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.78
#9242C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9242C2
5.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9242C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9242C2 | 1.00 | 5.55 | 3.78 | 5.55 |
| #FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#306ABF
Tritanopia (blue-blind)
#8C5C7C
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #9242c2; /* rgb */ color: rgb(146, 66, 194); /* oklch */ color: oklch(54.2% 0.197 310.1);
Tailwind
colors: {
custom: {
50: '#b67cd5',
500: '#9242c2',
950: '#000000',
},
}SCSS
$custom: #9242c2; $custom-light: #b67cd5; $custom-dark: #000000;
JSON
{
"hex": "#9242c2",
"rgb": {
"r": 146,
"g": 66,
"b": 194
},
"hsl": {
"h": 277.5,
"s": 51.2,
"l": 50.98
},
"oklch": {
"l": 0.54203,
"c": 0.19653,
"h": 310.1
},
"luminance": 0.13902
}Semantic roles & 50–950 ramp
primary
#9242C2
secondary
#A9CC94
accent
#DB4D82
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83