#8A2FC4#8A2FC4
#8A2FC4 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 51.3% C 0.219 H 308.1°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).
Color values
| HEX | #8A2FC4 |
|---|---|
| RGB | rgb(138, 47, 196) |
| HSL | hsl(277, 61%, 48%) |
| HSV | hsv(277, 76%, 77%) |
| CMYK | cmyk(29.6%, 76%, 0%, 23.1%) |
| CIE-LAB | lab(40.28, 61.86, -60.57) |
| CIE-LCH | lch(40.28, 86.58, 315.60°) |
| OKLab | oklab(51.31% 0.135 -0.172) |
| OKLCH | oklch(51.31% 0.219 308.1) |
| XYZ | xyz(21.4595, 11.4222, 53.2881) |
| Luminance | 0.1142 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkorchid
#9932CC
ΔE00 3.06
Darkviolet
#9400D3
ΔE00 3.47
Blueviolet
#8A2BE2
ΔE00 4.08
Violet (survey)
#9A0EEA
ΔE00 5.18
Purply
#983FB2
ΔE00 5.64
Vibrant Purple
#AD03DE
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#8A2FC4 #69C42F
analogous
#3F2FC4 #8A2FC4 #C42FB4
triadic
#8A2FC4 #C48A2F #2FC48A
tetradic
#8A2FC4 #C43F2F #69C42F #2FB4C4
square
#8A2FC4 #C43F2F #69C42F #2FB4C4
split-complementary
#8A2FC4 #B4C42F #2FC43F
monochromatic
#441761 #672393 #8A2FC4 #A659D7 #C18AE3
Accessibility & contrast
On white
6.39
#8A2FC4 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.28
#8A2FC4 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #8A2FC4
6.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##8A2FC4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##8A2FC4 | 1.00 | 6.39 | 3.28 | 6.39 |
| #FFFFFF | 6.39 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.39 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005CC8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#815478
Achromatopsia (no color)
#5F5F5F
Design tokens & code
CSS
--color: #8a2fc4; /* rgb */ color: rgb(138, 47, 196); /* oklch */ color: oklch(51.3% 0.219 308.1);
Tailwind
colors: {
custom: {
50: '#b171d7',
500: '#8a2fc4',
950: '#000000',
},
}SCSS
$custom: #8a2fc4; $custom-light: #b171d7; $custom-dark: #000000;
JSON
{
"hex": "#8a2fc4",
"rgb": {
"r": 138,
"g": 47,
"b": 196
},
"hsl": {
"h": 276.644,
"s": 61.317,
"l": 47.647
},
"oklch": {
"l": 0.51306,
"c": 0.2187,
"h": 308.1
},
"luminance": 0.11422
}Semantic roles & 50–950 ramp
primary
#8A2FC4
secondary
#9FCD82
accent
#E44382
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83