#5A400C#5A400C

#5A400C is a dark, moderate orange. Relative luminance 0.059; OKLCH L 39.1% C 0.074 H 79.7°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#5A400C
RGBrgb(90, 64, 12)
HSLhsl(40, 76%, 20%)
HSVhsv(40, 87%, 35%)
CMYKcmyk(0%, 28.9%, 86.7%, 64.7%)
CIE-LABlab(29.08, 6.08, 33.73)
CIE-LCHlch(29.08, 34.28, 79.79°)
OKLaboklab(39.08% 0.0132 0.0729)
OKLCHoklch(39.08% 0.074 79.7)
XYZxyz(6.1166, 5.8675, 1.1581)
Luminance0.0587 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A400C #0C265A
analogous
#5A190C #5A400C #4D5A0C
triadic
#5A400C #0C5A40 #400C5A
tetradic
#5A400C #0C5A19 #0C265A #5A0C4D
square
#5A400C #0C5A19 #0C265A #5A0C4D
split-complementary
#5A400C #0C4D5A #190C5A
monochromatic
#1B1304 #241A05 #5A400C #906613 #C68D1A

Accessibility & contrast

On white

9.66
#5A400C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5A400C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A400C
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A400C#FFFFFF#000000##FFFFFF
##5A400C1.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A4103
Deuteranopia (green-blind)
#50470E
Tritanopia (blue-blind)
#633936
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a400c;
/* rgb */ color: rgb(90, 64, 12);
/* oklch */ color: oklch(39.1% 0.074 79.7);
Tailwind
colors: {
  custom: {
    50: '#8c7450',
    500: '#5a400c',
    950: '#000000',
  },
}
SCSS
$custom: #5a400c;
$custom-light: #8c7450;
$custom-dark: #000000;
JSON
{
  "hex": "#5a400c",
  "rgb": {
    "r": 90,
    "g": 64,
    "b": 12
  },
  "hsl": {
    "h": 40,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.39081,
    "c": 0.07412,
    "h": 79.7
  },
  "luminance": 0.05867
}

Semantic roles & 50–950 ramp

primary
#5A400C
secondary
#2D5095
accent
#74F335
background
#F9F7F4
surface
#F1EDE7
border
#CBC8C3
text
#0D0802
muted
#7E7B78

Preview Lab

Preview with #5A400C

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

Preview Lab → · Contrast checker → · Palette generator →

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