#4A27B6#4A27B6
#4A27B6 is a dark, highly saturated violet. Relative luminance 0.063; OKLCH L 42.1% C 0.206 H 284.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).
Color values
| HEX | #4A27B6 |
|---|---|
| RGB | rgb(74, 39, 182) |
| HSL | hsl(255, 65%, 43%) |
| HSV | hsv(255, 79%, 71%) |
| CMYK | cmyk(59.3%, 78.6%, 0%, 28.6%) |
| CIE-LAB | lab(30.12, 51.99, -69.27) |
| CIE-LCH | lch(30.12, 86.61, 306.89°) |
| OKLab | oklab(42.1% 0.0515 -0.1996) |
| OKLCH | oklch(42.1% 0.206 284.5) |
| XYZ | xyz(11.9905, 6.2835, 44.8279) |
| Luminance | 0.0628 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.31
Violet Blue
#510AC9
ΔE00 3.74
Purple Blue
#5D21D0
ΔE00 4.24
Blurple
#5539CC
ΔE00 5.26
Blue With A Hint Of Purple
#533CC6
ΔE00 5.33
True Blue
#010FCC
ΔE00 5.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A27B6 #93B627
analogous
#274CB6 #4A27B6 #9127B6
triadic
#4A27B6 #B64A27 #27B64A
tetradic
#4A27B6 #B6274C #93B627 #27B691
square
#4A27B6 #B6274C #93B627 #27B691
split-complementary
#4A27B6 #B69127 #4CB627
monochromatic
#211151 #361C84 #4A27B6 #6743D7 #9076E2
Accessibility & contrast
On white
9.31
#4A27B6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.26
#4A27B6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A27B6
9.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A27B6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A27B6 | 1.00 | 9.31 | 2.26 | 9.31 |
| #FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BBA
Deuteranopia (green-blind)
#0042B3
Tritanopia (blue-blind)
#03516E
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #4a27b6; /* rgb */ color: rgb(74, 39, 182); /* oklch */ color: oklch(42.1% 0.206 284.5);
Tailwind
colors: {
custom: {
50: '#8a66cd',
500: '#4a27b6',
950: '#000000',
},
}SCSS
$custom: #4a27b6; $custom-light: #8a66cd; $custom-dark: #000000;
JSON
{
"hex": "#4a27b6",
"rgb": {
"r": 74,
"g": 39,
"b": 182
},
"hsl": {
"h": 254.685,
"s": 64.706,
"l": 43.333
},
"oklch": {
"l": 0.42097,
"c": 0.20616,
"h": 284.5
},
"luminance": 0.06284
}Semantic roles & 50–950 ramp
primary
#4A27B6
secondary
#B3C970
accent
#E840BF
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0614
muted
#7E7A82