#9245C2#9245C2
#9245C2 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.6% C 0.192 H 309.8°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).
Color values
| HEX | #9245C2 |
|---|---|
| RGB | rgb(146, 69, 194) |
| HSL | hsl(277, 51%, 52%) |
| HSV | hsv(277, 64%, 76%) |
| CMYK | cmyk(24.7%, 64.4%, 0%, 23.9%) |
| CIE-LAB | lab(44.61, 53.55, -52.37) |
| CIE-LCH | lch(44.61, 74.90, 315.64°) |
| OKLab | oklab(54.57% 0.1233 -0.1478) |
| OKLCH | oklch(54.57% 0.192 309.8) |
| XYZ | xyz(23.7179, 14.2627, 52.5320) |
| Luminance | 0.1426 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.28
Purply
#983FB2
ΔE00 3.43
Blueviolet
#8A2BE2
ΔE00 6.37
Royal Purple
#7851A9
ΔE00 6.46
Deep Lavender
#8D5EB7
ΔE00 6.61
Vibrant Purple
#AD03DE
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9245C2 #75C245
analogous
#5445C2 #9245C2 #C245B4
triadic
#9245C2 #C29245 #45C292
tetradic
#9245C2 #C25445 #75C245 #45B4C2
square
#9245C2 #C25445 #75C245 #45B4C2
split-complementary
#9245C2 #B4C245 #45C254
monochromatic
#4F236A #713298 #9245C2 #AD73D1 #C8A1E0
Accessibility & contrast
On white
5.45
#9245C2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.85
#9245C2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #9245C2
5.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9245C2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##9245C2 | 1.00 | 5.45 | 3.85 | 5.45 |
| #FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#346BBF
Tritanopia (blue-blind)
#8B5E7D
Achromatopsia (no color)
#696969
Design tokens & code
CSS
--color: #9245c2; /* rgb */ color: rgb(146, 69, 194); /* oklch */ color: oklch(54.6% 0.192 309.8);
Tailwind
colors: {
custom: {
50: '#b67dd5',
500: '#9245c2',
950: '#000000',
},
}SCSS
$custom: #9245c2; $custom-light: #b67dd5; $custom-dark: #000000;
JSON
{
"hex": "#9245c2",
"rgb": {
"r": 146,
"g": 69,
"b": 194
},
"hsl": {
"h": 276.96,
"s": 50.607,
"l": 51.569
},
"oklch": {
"l": 0.54573,
"c": 0.19247,
"h": 309.8
},
"luminance": 0.14262
}Semantic roles & 50–950 ramp
primary
#9245C2
secondary
#ABCD96
accent
#DA4E84
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A14
muted
#817C83