#4C27B2#4C27B2
#4C27B2 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 41.9% C 0.201 H 286.0°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).
Color values
| HEX | #4C27B2 |
|---|---|
| RGB | rgb(76, 39, 178) |
| HSL | hsl(256, 64%, 43%) |
| HSV | hsv(256, 78%, 70%) |
| CMYK | cmyk(57.3%, 78.1%, 0%, 30.2%) |
| CIE-LAB | lab(29.91, 51.10, -67.22) |
| CIE-LCH | lch(29.91, 84.43, 307.24°) |
| OKLab | oklab(41.88% 0.0557 -0.1936) |
| OKLCH | oklch(41.88% 0.201 286) |
| XYZ | xyz(11.7395, 6.2012, 42.6892) |
| Luminance | 0.0620 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.36
Violet Blue
#510AC9
ΔE00 4.00
Purple Blue
#5D21D0
ΔE00 4.53
Blurple
#5539CC
ΔE00 5.57
Blue With A Hint Of Purple
#533CC6
ΔE00 5.58
True Blue
#010FCC
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C27B2 #8DB227
analogous
#2748B2 #4C27B2 #9127B2
triadic
#4C27B2 #B24C27 #27B24C
tetradic
#4C27B2 #B22748 #8DB227 #27B291
square
#4C27B2 #B22748 #8DB227 #27B291
split-complementary
#4C27B2 #B29127 #48B227
monochromatic
#21114E #371C80 #4C27B2 #6841D5 #9073E0
Accessibility & contrast
On white
9.37
#4C27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.24
#4C27B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C27B2
9.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C27B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C27B2 | 1.00 | 9.37 | 2.24 | 9.37 |
| #FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.24 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0042AF
Tritanopia (blue-blind)
#194F6C
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #4c27b2; /* rgb */ color: rgb(76, 39, 178); /* oklch */ color: oklch(41.9% 0.201 286.0);
Tailwind
colors: {
custom: {
50: '#8a66ca',
500: '#4c27b2',
950: '#000000',
},
}SCSS
$custom: #4c27b2; $custom-light: #8a66ca; $custom-dark: #000000;
JSON
{
"hex": "#4c27b2",
"rgb": {
"r": 76,
"g": 39,
"b": 178
},
"hsl": {
"h": 255.971,
"s": 64.055,
"l": 42.549
},
"oklch": {
"l": 0.41883,
"c": 0.20142,
"h": 286
},
"luminance": 0.06202
}Semantic roles & 50–950 ramp
primary
#4C27B2
secondary
#AFC86D
accent
#E741BB
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82