#5A470E#5A470E

#5A470E is a dark, moderate yellow. Relative luminance 0.067; OKLCH L 40.7% C 0.076 H 89.1°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#5A470E
RGBrgb(90, 71, 14)
HSLhsl(45, 73%, 20%)
HSVhsv(45, 84%, 35%)
CMYKcmyk(0%, 21.1%, 84.4%, 64.7%)
CIE-LABlab(31.14, 1.78, 34.81)
CIE-LCHlch(31.14, 34.85, 87.07°)
OKLaboklab(40.71% 0.0012 0.0758)
OKLCHoklch(40.71% 0.076 89.1)
XYZxyz(6.5494, 6.7123, 1.3660)
Luminance0.0671 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A470E #0E215A
analogous
#5A210E #5A470E #475A0E
triadic
#5A470E #0E5A47 #470E5A
tetradic
#5A470E #0E5A21 #0E215A #5A0E47
square
#5A470E #0E5A21 #0E215A #5A0E47
split-complementary
#5A470E #0E475A #210E5A
monochromatic
#1A1504 #251D06 #5A470E #8F7116 #C49B1E

Accessibility & contrast

On white

8.97
#5A470E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5A470E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A470E
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A470E#FFFFFF#000000##FFFFFF
##5A470E1.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504604
Deuteranopia (green-blind)
#554B11
Tritanopia (blue-blind)
#62403C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5a470e;
/* rgb */ color: rgb(90, 71, 14);
/* oklch */ color: oklch(40.7% 0.076 89.1);
Tailwind
colors: {
  custom: {
    50: '#8c7952',
    500: '#5a470e',
    950: '#000000',
  },
}
SCSS
$custom: #5a470e;
$custom-light: #8c7952;
$custom-dark: #000000;
JSON
{
  "hex": "#5a470e",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 14
  },
  "hsl": {
    "h": 45,
    "s": 73.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.40709,
    "c": 0.07577,
    "h": 89.1
  },
  "luminance": 0.06712
}

Semantic roles & 50–950 ramp

primary
#5A470E
secondary
#304994
accent
#66F038
background
#F8F7F4
surface
#F0EDE7
border
#CBC8C3
text
#0C0902
muted
#7D7B78

Preview Lab

Preview with #5A470E

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

Preview Lab → · Contrast checker → · Palette generator →

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