#4A279E#4A279E
#4A279E is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.8% C 0.178 H 289.0°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).
Color values
| HEX | #4A279E |
|---|---|
| RGB | rgb(74, 39, 158) |
| HSL | hsl(258, 60%, 39%) |
| HSV | hsv(258, 75%, 62%) |
| CMYK | cmyk(53.2%, 75.3%, 0%, 38%) |
| CIE-LAB | lab(27.78, 45.12, -58.68) |
| CIE-LCH | lch(27.78, 74.02, 307.55°) |
| OKLab | oklab(39.75% 0.0582 -0.1687) |
| OKLCH | oklch(39.75% 0.178 289) |
| XYZ | xyz(9.7193, 5.3751, 32.8665) |
| Luminance | 0.0538 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.09
Rebeccapurple
#663399
ΔE00 5.96
Violet Blue
#510AC9
ΔE00 6.26
Ultramarine
#2000B1
ΔE00 6.94
Indigo
#4B0082
ΔE00 7.08
Darkslateblue
#483D8B
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A279E #7B9E27
analogous
#273F9E #4A279E #85279E
triadic
#4A279E #9E4A27 #279E4A
tetradic
#4A279E #9E273F #7B9E27 #279E85
square
#4A279E #9E273F #7B9E27 #279E85
split-complementary
#4A279E #9E8527 #3F9E27
monochromatic
#1C0F3C #331B6D #4A279E #6235CD #8866D9
Accessibility & contrast
On white
10.12
#4A279E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.08
#4A279E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A279E
10.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A279E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A279E | 1.00 | 10.12 | 2.08 | 10.12 |
| #FFFFFF | 10.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0044A1
Deuteranopia (green-blind)
#003F9C
Tritanopia (blue-blind)
#2A4861
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #4a279e; /* rgb */ color: rgb(74, 39, 158); /* oklch */ color: oklch(39.8% 0.178 289.0);
Tailwind
colors: {
custom: {
50: '#8665bc',
500: '#4a279e',
950: '#000000',
},
}SCSS
$custom: #4a279e; $custom-light: #8665bc; $custom-dark: #000000;
JSON
{
"hex": "#4a279e",
"rgb": {
"r": 74,
"g": 39,
"b": 158
},
"hsl": {
"h": 257.647,
"s": 60.406,
"l": 38.627
},
"oklch": {
"l": 0.39753,
"c": 0.17841,
"h": 289
},
"luminance": 0.05376
}Semantic roles & 50–950 ramp
primary
#4A279E
secondary
#A4BF62
accent
#E444B5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81