#8C2FAF#8C2FAF
#8C2FAF is a mid, vivid purple. Relative luminance 0.107; OKLCH L 50.0% C 0.200 H 315.0°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).
Color values
| HEX | #8C2FAF |
|---|---|
| RGB | rgb(140, 47, 175) |
| HSL | hsl(284, 58%, 44%) |
| HSV | hsv(284, 73%, 69%) |
| CMYK | cmyk(20%, 73.1%, 0%, 31.4%) |
| CIE-LAB | lab(39.08, 57.84, -50.14) |
| CIE-LCH | lch(39.08, 76.55, 319.07°) |
| OKLab | oklab(50.04% 0.1411 -0.1413) |
| OKLCH | oklch(50.04% 0.2 315) |
| XYZ | xyz(19.5683, 10.7043, 41.5845) |
| Luminance | 0.1070 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.24
Purple (survey)
#7E1E9C
ΔE00 4.74
Darkorchid
#9932CC
ΔE00 4.80
Barney
#AC1DB8
ΔE00 5.55
Darkviolet
#9400D3
ΔE00 5.60
Barney Purple
#A00498
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C2FAF #52AF2F
analogous
#4C2FAF #8C2FAF #AF2F92
triadic
#8C2FAF #AF8C2F #2FAF8C
tetradic
#8C2FAF #AF4C2F #52AF2F #2F92AF
square
#8C2FAF #AF4C2F #52AF2F #2F92AF
split-complementary
#8C2FAF #92AF2F #2FAF4C
monochromatic
#3F154F #65227F #8C2FAF #AB4CCF #C27CDC
Accessibility & contrast
On white
6.69
#8C2FAF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.14
#8C2FAF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8C2FAF
6.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C2FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C2FAF | 1.00 | 6.69 | 3.14 | 6.69 |
| #FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0057B3
Deuteranopia (green-blind)
#2A5EAC
Tritanopia (blue-blind)
#894A6C
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8c2faf; /* rgb */ color: rgb(140, 47, 175); /* oklch */ color: oklch(50.0% 0.200 315.0);
Tailwind
colors: {
custom: {
50: '#b271c8',
500: '#8c2faf',
950: '#000000',
},
}SCSS
$custom: #8c2faf; $custom-light: #b271c8; $custom-dark: #000000;
JSON
{
"hex": "#8c2faf",
"rgb": {
"r": 140,
"g": 47,
"b": 175
},
"hsl": {
"h": 283.594,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.50043,
"c": 0.19973,
"h": 315
},
"luminance": 0.10704
}Semantic roles & 50–950 ramp
primary
#8C2FAF
secondary
#8BC475
accent
#E14771
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82