#4C337A#4C337A
#4C337A is a dark, moderate violet. Relative luminance 0.053; OKLCH L 38.8% C 0.116 H 296.9°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).
Color values
| HEX | #4C337A |
|---|---|
| RGB | rgb(76, 51, 122) |
| HSL | hsl(261, 41%, 34%) |
| HSV | hsv(261, 58%, 48%) |
| CMYK | cmyk(37.7%, 58.2%, 0%, 52.2%) |
| CIE-LAB | lab(27.60, 28.20, -36.65) |
| CIE-LCH | lch(27.60, 46.25, 307.58°) |
| OKLab | oklab(38.77% 0.0526 -0.1039) |
| OKLCH | oklch(38.77% 0.116 296.9) |
| XYZ | xyz(7.6763, 5.3092, 19.0289) |
| Luminance | 0.0531 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.59
Rebeccapurple
#663399
ΔE00 6.79
Blueberry
#464196
ΔE00 6.87
Indigo
#4B0082
ΔE00 9.58
Royal Purple (survey)
#4B006E
ΔE00 9.75
Midnight Blue
#191970
ΔE00 9.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#4C337A #617A33
analogous
#333E7A #4C337A #70337A
triadic
#4C337A #7A4C33 #337A4C
tetradic
#4C337A #7A333E #617A33 #337A70
square
#4C337A #7A333E #617A33 #337A70
split-complementary
#4C337A #7A7033 #3E7A33
monochromatic
#160F24 #31214F #4C337A #6745A5 #8768C0
Accessibility & contrast
On white
10.19
#4C337A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#4C337A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #4C337A
10.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##4C337A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##4C337A | 1.00 | 10.19 | 2.06 | 10.19 |
| #FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#12417C
Deuteranopia (green-blind)
#1B4078
Tritanopia (blue-blind)
#414251
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #4c337a; /* rgb */ color: rgb(76, 51, 122); /* oklch */ color: oklch(38.8% 0.116 296.9);
Tailwind
colors: {
custom: {
50: '#816ba1',
500: '#4c337a',
950: '#000000',
},
}SCSS
$custom: #4c337a; $custom-light: #816ba1; $custom-dark: #000000;
JSON
{
"hex": "#4c337a",
"rgb": {
"r": 76,
"g": 51,
"b": 122
},
"hsl": {
"h": 261.127,
"s": 41.04,
"l": 33.922
},
"oklch": {
"l": 0.38767,
"c": 0.11648,
"h": 296.9
},
"luminance": 0.05309
}Semantic roles & 50–950 ramp
primary
#4C337A
secondary
#8FA861
accent
#D157A6
background
#F8F6F9
surface
#EFEBF2
border
#CAC6CC
text
#0B070F
muted
#7C7A7E