#8C2FAC#8C2FAC
#8C2FAC is a mid, vivid purple. Relative luminance 0.106; OKLCH L 49.8% C 0.197 H 315.9°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).
Color values
| HEX | #8C2FAC |
|---|---|
| RGB | rgb(140, 47, 172) |
| HSL | hsl(285, 57%, 43%) |
| HSV | hsv(285, 73%, 67%) |
| CMYK | cmyk(18.6%, 72.7%, 0%, 32.5%) |
| CIE-LAB | lab(38.88, 57.23, -48.68) |
| CIE-LCH | lch(38.88, 75.13, 319.61°) |
| OKLab | oklab(49.84% 0.1415 -0.1371) |
| OKLCH | oklch(49.84% 0.197 315.9) |
| XYZ | xyz(19.2770, 10.5878, 40.0499) |
| Luminance | 0.1059 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 4.25
Purple (survey)
#7E1E9C
ΔE00 4.51
Darkorchid
#9932CC
ΔE00 5.22
Barney
#AC1DB8
ΔE00 5.55
Darkviolet
#9400D3
ΔE00 6.02
Barney Purple
#A00498
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8C2FAC #4FAC2F
analogous
#4D2FAC #8C2FAC #AC2F8D
triadic
#8C2FAC #AC8C2F #2FAC8C
tetradic
#8C2FAC #AC4D2F #4FAC2F #2F8DAC
square
#8C2FAC #AC4D2F #4FAC2F #2F8DAC
split-complementary
#8C2FAC #8DAC2F #2FAC4D
monochromatic
#3E154C #65227C #8C2FAC #AC4BCE #C27BDB
Accessibility & contrast
On white
6.74
#8C2FAC on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.12
#8C2FAC on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8C2FAC
6.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8C2FAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8C2FAC | 1.00 | 6.74 | 3.12 | 6.74 |
| #FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056B0
Deuteranopia (green-blind)
#2D5EA9
Tritanopia (blue-blind)
#8A496B
Achromatopsia (no color)
#5C5C5C
Design tokens & code
CSS
--color: #8c2fac; /* rgb */ color: rgb(140, 47, 172); /* oklch */ color: oklch(49.8% 0.197 315.9);
Tailwind
colors: {
custom: {
50: '#b170c5',
500: '#8c2fac',
950: '#000000',
},
}SCSS
$custom: #8c2fac; $custom-light: #b170c5; $custom-dark: #000000;
JSON
{
"hex": "#8c2fac",
"rgb": {
"r": 140,
"g": 47,
"b": 172
},
"hsl": {
"h": 284.64,
"s": 57.078,
"l": 42.941
},
"oklch": {
"l": 0.49836,
"c": 0.19696,
"h": 315.9
},
"luminance": 0.10587
}Semantic roles & 50–950 ramp
primary
#8C2FAC
secondary
#88C374
accent
#E0476F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82