#5A5012#5A5012

#5A5012 is a dark, moderate yellow. Relative luminance 0.080; OKLCH L 42.9% C 0.080 H 99.7°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#5A5012
RGBrgb(90, 80, 18)
HSLhsl(52, 67%, 21%)
HSVhsv(52, 80%, 35%)
CMYKcmyk(0%, 11.1%, 80%, 64.7%)
CIE-LABlab(33.89, -3.53, 35.75)
CIE-LCHlch(33.89, 35.92, 95.64°)
OKLaboklab(42.89% -0.0135 0.0787)
OKLCHoklch(42.89% 0.08 99.7)
XYZxyz(7.1946, 7.9550, 1.7287)
Luminance0.0795 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5012 #121C5A
analogous
#5A2C12 #5A5012 #405A12
triadic
#5A5012 #125A50 #50125A
tetradic
#5A5012 #125A2C #121C5A #5A1240
square
#5A5012 #125A2C #121C5A #5A1240
split-complementary
#5A5012 #12405A #2C125A
monochromatic
#1A1705 #272308 #5A5012 #8D7D1C #C0AB26

Accessibility & contrast

On white

8.10
#5A5012 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5A5012 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A5012
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5012#FFFFFF#000000##FFFFFF
##5A50121.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#594E07
Deuteranopia (green-blind)
#5B5116
Tritanopia (blue-blind)
#624944
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a5012;
/* rgb */ color: rgb(90, 80, 18);
/* oklch */ color: oklch(42.9% 0.080 99.7);
Tailwind
colors: {
  custom: {
    50: '#8b8055',
    500: '#5a5012',
    950: '#000000',
  },
}
SCSS
$custom: #5a5012;
$custom-light: #8b8055;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5012",
  "rgb": {
    "r": 90,
    "g": 80,
    "b": 18
  },
  "hsl": {
    "h": 51.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42888,
    "c": 0.07984,
    "h": 99.7
  },
  "luminance": 0.07955
}

Semantic roles & 50–950 ramp

primary
#5A5012
secondary
#354293
accent
#56EA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A5012

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

Preview Lab → · Contrast checker → · Palette generator →

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