#5A4F12#5A4F12

#5A4F12 is a dark, moderate yellow. Relative luminance 0.078; OKLCH L 42.6% C 0.079 H 98.6°. Best body text is #FFFFFF at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#5A4F12
RGBrgb(90, 79, 18)
HSLhsl(51, 67%, 21%)
HSVhsv(51, 80%, 35%)
CMYKcmyk(0%, 12.2%, 80%, 64.7%)
CIE-LABlab(33.58, -2.93, 35.46)
CIE-LCHlch(33.58, 35.58, 94.72°)
OKLaboklab(42.65% -0.0118 0.0781)
OKLCHoklch(42.65% 0.079 98.6)
XYZxyz(7.1220, 7.8097, 1.7044)
Luminance0.0781 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4F12 #121D5A
analogous
#5A2B12 #5A4F12 #415A12
triadic
#5A4F12 #125A4F #4F125A
tetradic
#5A4F12 #125A2B #121D5A #5A1241
square
#5A4F12 #125A2B #121D5A #5A1241
split-complementary
#5A4F12 #12415A #2B125A
monochromatic
#1A1605 #272208 #5A4F12 #8D7C1C #C0A926

Accessibility & contrast

On white

8.20
#5A4F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5A4F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A4F12
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4F12#FFFFFF#000000##FFFFFF
##5A4F121.008.202.568.20
#FFFFFF8.201.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#584D07
Deuteranopia (green-blind)
#5B5116
Tritanopia (blue-blind)
#624843
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a4f12;
/* rgb */ color: rgb(90, 79, 18);
/* oklch */ color: oklch(42.6% 0.079 98.6);
Tailwind
colors: {
  custom: {
    50: '#8c8055',
    500: '#5a4f12',
    950: '#000000',
  },
}
SCSS
$custom: #5a4f12;
$custom-light: #8c8055;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4f12",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 18
  },
  "hsl": {
    "h": 50.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.42646,
    "c": 0.07896,
    "h": 98.6
  },
  "luminance": 0.07809
}

Semantic roles & 50–950 ramp

primary
#5A4F12
secondary
#354493
accent
#58EA3E
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A4F12

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

Preview Lab → · Contrast checker → · Palette generator →

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