#8D45C5#8D45C5
#8D45C5 is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.2% C 0.194 H 306.9°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).
Color values
| HEX | #8D45C5 |
|---|---|
| RGB | rgb(141, 69, 197) |
| HSL | hsl(274, 52%, 52%) |
| HSV | hsv(274, 65%, 77%) |
| CMYK | cmyk(28.4%, 65%, 0%, 22.7%) |
| CIE-LAB | lab(44.16, 53.11, -54.86) |
| CIE-LCH | lch(44.16, 76.36, 314.07°) |
| OKLab | oklab(54.18% 0.1166 -0.1553) |
| OKLCH | oklch(54.18% 0.194 306.9) |
| XYZ | xyz(23.1885, 13.9504, 54.2836) |
| Luminance | 0.1395 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.39
Purply
#983FB2
ΔE00 4.43
Blueviolet
#8A2BE2
ΔE00 5.60
Royal Purple
#7851A9
ΔE00 6.20
Purpley
#8756E4
ΔE00 6.66
Violet (survey)
#9A0EEA
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8D45C5 #7DC545
analogous
#4D45C5 #8D45C5 #C545BD
triadic
#8D45C5 #C58D45 #45C58D
tetradic
#8D45C5 #C54D45 #7DC545 #45BDC5
square
#8D45C5 #C54D45 #7DC545 #45BDC5
split-complementary
#8D45C5 #BDC545 #45C54D
monochromatic
#4D226D #6D319C #8D45C5 #AA74D4 #C6A2E2
Accessibility & contrast
On white
5.54
#8D45C5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.79
#8D45C5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8D45C5
5.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8D45C5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8D45C5 | 1.00 | 5.54 | 3.79 | 5.54 |
| #FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0066C9
Deuteranopia (green-blind)
#2969C2
Tritanopia (blue-blind)
#84607F
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8d45c5; /* rgb */ color: rgb(141, 69, 197); /* oklch */ color: oklch(54.2% 0.194 306.9);
Tailwind
colors: {
custom: {
50: '#b27dd7',
500: '#8d45c5',
950: '#000000',
},
}SCSS
$custom: #8d45c5; $custom-light: #b27dd7; $custom-dark: #000000;
JSON
{
"hex": "#8d45c5",
"rgb": {
"r": 141,
"g": 69,
"b": 197
},
"hsl": {
"h": 273.75,
"s": 52.459,
"l": 52.157
},
"oklch": {
"l": 0.54176,
"c": 0.19416,
"h": 306.9
},
"luminance": 0.1395
}Semantic roles & 50–950 ramp
primary
#8D45C5
secondary
#AFCF97
accent
#DC4C8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83