#4D27B2#4D27B2
#4D27B2 is a dark, highly saturated violet. Relative luminance 0.062; OKLCH L 42.0% C 0.201 H 286.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).
Color values
| HEX | #4D27B2 |
|---|---|
| RGB | rgb(77, 39, 178) |
| HSL | hsl(256, 64%, 43%) |
| HSV | hsv(256, 78%, 70%) |
| CMYK | cmyk(56.7%, 78.1%, 0%, 30.2%) |
| CIE-LAB | lab(30.02, 51.22, -67.05) |
| CIE-LCH | lch(30.02, 84.37, 307.38°) |
| OKLab | oklab(41.98% 0.0572 -0.193) |
| OKLCH | oklch(41.98% 0.201 286.5) |
| XYZ | xyz(11.8196, 6.2425, 42.6930) |
| Luminance | 0.0624 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.46
Violet Blue
#510AC9
ΔE00 3.98
Purple Blue
#5D21D0
ΔE00 4.46
Blurple
#5539CC
ΔE00 5.53
Blue With A Hint Of Purple
#533CC6
ΔE00 5.56
True Blue
#010FCC
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4D27B2 #8CB227
analogous
#2746B2 #4D27B2 #9327B2
triadic
#4D27B2 #B24D27 #27B24D
tetradic
#4D27B2 #B22746 #8CB227 #27B293
square
#4D27B2 #B22746 #8CB227 #27B293
split-complementary
#4D27B2 #B29327 #46B227
monochromatic
#22114E #371C80 #4D27B2 #6941D5 #9173E0
Accessibility & contrast
On white
9.34
#4D27B2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#4D27B2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4D27B2
9.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4D27B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4D27B2 | 1.00 | 9.34 | 2.25 | 9.34 |
| #FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004AB6
Deuteranopia (green-blind)
#0043AF
Tritanopia (blue-blind)
#1D4F6C
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #4d27b2; /* rgb */ color: rgb(77, 39, 178); /* oklch */ color: oklch(42.0% 0.201 286.5);
Tailwind
colors: {
custom: {
50: '#8a66ca',
500: '#4d27b2',
950: '#000000',
},
}SCSS
$custom: #4d27b2; $custom-light: #8a66ca; $custom-dark: #000000;
JSON
{
"hex": "#4d27b2",
"rgb": {
"r": 77,
"g": 39,
"b": 178
},
"hsl": {
"h": 256.403,
"s": 64.055,
"l": 42.549
},
"oklch": {
"l": 0.41978,
"c": 0.20134,
"h": 286.5
},
"luminance": 0.06243
}Semantic roles & 50–950 ramp
primary
#4D27B2
secondary
#AFC86D
accent
#E741BA
background
#F9F6FC
surface
#F1EBF9
border
#CBC6D2
text
#0D0613
muted
#7E7A82