#8C42CF#8C42CF
#8C42CF is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.208 H 304.3°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).
Color values
| HEX | #8C42CF |
|---|---|
| RGB | rgb(140, 66, 207) |
| HSL | hsl(271, 59%, 54%) |
| HSV | hsv(271, 68%, 81%) |
| CMYK | cmyk(32.4%, 68.1%, 0%, 18.8%) |
| CIE-LAB | lab(44.20, 56.65, -60.59) |
| CIE-LCH | lch(44.20, 82.94, 313.08°) |
| OKLab | oklab(54.39% 0.1175 -0.1721) |
| OKLCH | oklch(54.39% 0.208 304.3) |
| XYZ | xyz(24.0234, 13.9770, 60.4516) |
| Luminance | 0.1398 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.25
Blueviolet
#8A2BE2
ΔE00 4.18
Violet (survey)
#9A0EEA
ΔE00 5.65
Purply
#983FB2
ΔE00 5.79
Purpley
#8756E4
ΔE00 5.93
Bluish Purple
#703BE7
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C42CF #85CF42
analogous
#4542CF #8C42CF #CF42CC
triadic
#8C42CF #CF8C42 #42CF8C
tetradic
#8C42CF #CF4542 #85CF42 #42CCCF
square
#8C42CF #CF4542 #85CF42 #42CCCF
split-complementary
#8C42CF #CCCF42 #42CF45
monochromatic
#4E1F78 #6D2BA9 #8C42CF #AA73DB #C7A4E8
Accessibility & contrast
On white
5.53
#8C42CF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.80
#8C42CF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8C42CF
5.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C42CF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C42CF | 1.00 | 5.53 | 3.80 | 5.53 |
| #FFFFFF | 5.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#0368CC
Tritanopia (blue-blind)
#7F6283
Achromatopsia (no color)
#686868
Design tokens & code
CSS
--color: #8c42cf; /* rgb */ color: rgb(140, 66, 207); /* oklch */ color: oklch(54.4% 0.208 304.3);
Tailwind
colors: {
custom: {
50: '#b37cde',
500: '#8c42cf',
950: '#000000',
},
}SCSS
$custom: #8c42cf; $custom-light: #b37cde; $custom-dark: #000000;
JSON
{
"hex": "#8c42cf",
"rgb": {
"r": 140,
"g": 66,
"b": 207
},
"hsl": {
"h": 271.489,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.54392,
"c": 0.20841,
"h": 304.3
},
"luminance": 0.13977
}Semantic roles & 50–950 ramp
primary
#8C42CF
secondary
#B5D598
accent
#E34590
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83