#4A279B#4A279B
#4A279B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.175 H 289.7°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).
Color values
| HEX | #4A279B |
|---|---|
| RGB | rgb(74, 39, 155) |
| HSL | hsl(258, 60%, 38%) |
| HSV | hsv(258, 75%, 61%) |
| CMYK | cmyk(52.3%, 74.8%, 0%, 39.2%) |
| CIE-LAB | lab(27.50, 44.25, -57.31) |
| CIE-LCH | lch(27.50, 72.41, 307.68°) |
| OKLab | oklab(39.47% 0.0589 -0.1646) |
| OKLCH | oklch(39.47% 0.175 289.7) |
| XYZ | xyz(9.4642, 5.2730, 31.5231) |
| Luminance | 0.0527 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.41
Rebeccapurple
#663399
ΔE00 5.86
Violet Blue
#510AC9
ΔE00 6.65
Indigo
#4B0082
ΔE00 6.82
Darkslateblue
#483D8B
ΔE00 6.94
Royal
#0C1793
ΔE00 7.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4A279B #789B27
analogous
#273E9B #4A279B #84279B
triadic
#4A279B #9B4A27 #279B4A
tetradic
#4A279B #9B273E #789B27 #279B84
square
#4A279B #9B273E #789B27 #279B84
split-complementary
#4A279B #9B8427 #3E9B27
monochromatic
#1B0E39 #331B6A #4A279B #6133CC #8764D8
Accessibility & contrast
On white
10.22
#4A279B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#4A279B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4A279B
10.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4A279B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4A279B | 1.00 | 10.22 | 2.05 | 10.22 |
| #FFFFFF | 10.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#2D465F
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #4a279b; /* rgb */ color: rgb(74, 39, 155); /* oklch */ color: oklch(39.5% 0.175 289.7);
Tailwind
colors: {
custom: {
50: '#8565b9',
500: '#4a279b',
950: '#000000',
},
}SCSS
$custom: #4a279b; $custom-light: #8565b9; $custom-dark: #000000;
JSON
{
"hex": "#4a279b",
"rgb": {
"r": 74,
"g": 39,
"b": 155
},
"hsl": {
"h": 258.103,
"s": 59.794,
"l": 38.039
},
"oklch": {
"l": 0.39471,
"c": 0.17487,
"h": 289.7
},
"luminance": 0.05273
}Semantic roles & 50–950 ramp
primary
#4A279B
secondary
#A2BE60
accent
#E345B3
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81