#5A5112#5A5112

#5A5112 is a dark, moderate yellow. Relative luminance 0.081; OKLCH L 43.1% C 0.081 H 100.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5A5112
RGBrgb(90, 81, 18)
HSLhsl(53, 67%, 21%)
HSVhsv(53, 80%, 35%)
CMYKcmyk(0%, 10%, 80%, 64.7%)
CIE-LABlab(34.20, -4.13, 36.04)
CIE-LCHlch(34.20, 36.28, 96.54°)
OKLaboklab(43.13% -0.0152 0.0793)
OKLCHoklch(43.13% 0.081 100.9)
XYZxyz(7.2684, 8.1025, 1.7532)
Luminance0.0810 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5112 #121B5A
analogous
#5A2D12 #5A5112 #3F5A12
triadic
#5A5112 #125A51 #51125A
tetradic
#5A5112 #125A2D #121B5A #5A123F
square
#5A5112 #125A2D #121B5A #5A123F
split-complementary
#5A5112 #123F5A #2D125A
monochromatic
#1A1705 #272308 #5A5112 #8D7F1C #C0AD26

Accessibility & contrast

On white

8.01
#5A5112 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5A5112 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5112
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5112#FFFFFF#000000##FFFFFF
##5A51121.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E07
Deuteranopia (green-blind)
#5C5216
Tritanopia (blue-blind)
#624B45
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a5112;
/* rgb */ color: rgb(90, 81, 18);
/* oklch */ color: oklch(43.1% 0.081 100.9);
Tailwind
colors: {
  custom: {
    50: '#8b8155',
    500: '#5a5112',
    950: '#000000',
  },
}
SCSS
$custom: #5a5112;
$custom-light: #8b8155;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5112",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 18
  },
  "hsl": {
    "h": 52.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.43132,
    "c": 0.08076,
    "h": 100.9
  },
  "luminance": 0.08102
}

Semantic roles & 50–950 ramp

primary
#5A5112
secondary
#354193
accent
#54EA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5112

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5A5112 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva