#5A4F10#5A4F10

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

Color values

HEX#5A4F10
RGBrgb(90, 79, 16)
HSLhsl(51, 70%, 21%)
HSVhsv(51, 82%, 35%)
CMYKcmyk(0%, 12.2%, 82.2%, 64.7%)
CIE-LABlab(33.57, -3.03, 36.25)
CIE-LCHlch(33.57, 36.38, 94.77°)
OKLaboklab(42.63% -0.0123 0.0793)
OKLCHoklch(42.63% 0.08 98.8)
XYZxyz(7.1063, 7.8034, 1.6220)
Luminance0.0780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4F10 #101B5A
analogous
#5A2A10 #5A4F10 #405A10
triadic
#5A4F10 #105A4F #4F105A
tetradic
#5A4F10 #105A2A #101B5A #5A1040
square
#5A4F10 #105A2A #101B5A #5A1040
split-complementary
#5A4F10 #10405A #2A105A
monochromatic
#1A1705 #262107 #5A4F10 #8E7D19 #C2AA22

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A4F10#FFFFFF#000000##FFFFFF
##5A4F101.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)
#584D04
Deuteranopia (green-blind)
#5B5114
Tritanopia (blue-blind)
#624843
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a4f10;
/* rgb */ color: rgb(90, 79, 16);
/* oklch */ color: oklch(42.6% 0.080 98.8);
Tailwind
colors: {
  custom: {
    50: '#8c8054',
    500: '#5a4f10',
    950: '#000000',
  },
}
SCSS
$custom: #5a4f10;
$custom-light: #8c8054;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4f10",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 16
  },
  "hsl": {
    "h": 51.081,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.42631,
    "c": 0.08027,
    "h": 98.8
  },
  "luminance": 0.07803
}

Semantic roles & 50–950 ramp

primary
#5A4F10
secondary
#334193
accent
#56ED3B
background
#F8F7F5
surface
#F0EEE9
border
#CBC9C5
text
#0C0A03
muted
#7D7C78

Preview Lab

Preview with #5A4F10

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

Preview Lab → · Contrast checker → · Palette generator →

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