#5A511B#5A511B
#5A511B is a dark, moderate yellow. Relative luminance 0.081; OKLCH L 43.2% C 0.074 H 99.8°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).
Color values
| HEX | #5A511B |
|---|---|
| RGB | rgb(90, 81, 27) |
| HSL | hsl(51, 54%, 23%) |
| HSV | hsv(51, 70%, 35%) |
| CMYK | cmyk(0%, 10%, 70%, 64.7%) |
| CIE-LAB | lab(34.27, -3.59, 32.03) |
| CIE-LCH | lch(34.27, 32.23, 96.39°) |
| OKLab | oklab(43.21% -0.0125 0.0726) |
| OKLCH | oklch(43.21% 0.074 99.8) |
| XYZ | xyz(7.3570, 8.1380, 2.2200) |
| Luminance | 0.0814 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Green Brown
#544E03
ΔE00 3.45
Olive Brown
#645403
ΔE00 4.81
Greenish Brown
#696112
ΔE00 6.72
Greeny Brown
#696006
ΔE00 7.11
Mud Brown
#60460F
ΔE00 7.49
Mud
#735C12
ΔE00 7.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#5A511B #1B245A
analogous
#5A321B #5A511B #435A1B
triadic
#5A511B #1B5A51 #511B5A
tetradic
#5A511B #1B5A32 #1B245A #5A1B43
square
#5A511B #1B5A32 #1B245A #5A1B43
split-complementary
#5A511B #1B435A #321B5A
monochromatic
#181507 #2B270D #5A511B #897B29 #B8A637
Accessibility & contrast
On white
7.99
#5A511B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.63
#5A511B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #5A511B
7.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##5A511B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##5A511B | 1.00 | 7.99 | 2.63 | 7.99 |
| #FFFFFF | 7.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 7.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#594F14
Deuteranopia (green-blind)
#5C521E
Tritanopia (blue-blind)
#614B46
Achromatopsia (no color)
#515151
Design tokens & code
CSS
--color: #5a511b; /* rgb */ color: rgb(90, 81, 27); /* oklch */ color: oklch(43.2% 0.074 99.8);
Tailwind
colors: {
custom: {
50: '#8b815a',
500: '#5a511b',
950: '#000000',
},
}SCSS
$custom: #5a511b; $custom-light: #8b815a; $custom-dark: #000000;
JSON
{
"hex": "#5a511b",
"rgb": {
"r": 90,
"g": 81,
"b": 27
},
"hsl": {
"h": 51.429,
"s": 53.846,
"l": 22.941
},
"oklch": {
"l": 0.43213,
"c": 0.0737,
"h": 99.8
},
"luminance": 0.08138
}Semantic roles & 50–950 ramp
primary
#5A511B
secondary
#414C90
accent
#60DD4B
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A04
muted
#7D7C79