#5A2812#5A2812

#5A2812 is a dark, moderate orange. Relative luminance 0.037; OKLCH L 34.2% C 0.081 H 42.9°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#5A2812
RGBrgb(90, 40, 18)
HSLhsl(18, 67%, 21%)
HSVhsv(18, 80%, 35%)
CMYKcmyk(0%, 55.6%, 80%, 64.7%)
CIE-LABlab(22.78, 21.26, 24.62)
CIE-LCHlch(22.78, 32.53, 49.19°)
OKLaboklab(34.23% 0.0592 0.055)
OKLCHoklch(34.23% 0.081 42.9)
XYZxyz(5.0849, 3.7355, 1.0254)
Luminance0.0374 (WCAG relative)
Temperaturewarm
Familyorange

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A2812 #12445A
analogous
#5A1220 #5A2812 #5A4C12
triadic
#5A2812 #125A28 #28125A
tetradic
#5A2812 #205A12 #12445A #4C125A
square
#5A2812 #205A12 #12445A #4C125A
split-complementary
#5A2812 #125A4C #12205A
monochromatic
#1A0B05 #271108 #5A2812 #8D3F1C #C05526

Accessibility & contrast

On white

12.02
#5A2812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A2812 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A2812
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A2812#FFFFFF#000000##FFFFFF
##5A28121.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36300F
Deuteranopia (green-blind)
#423B11
Tritanopia (blue-blind)
#631D23
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a2812;
/* rgb */ color: rgb(90, 40, 18);
/* oklch */ color: oklch(34.2% 0.081 42.9);
Tailwind
colors: {
  custom: {
    50: '#8e6351',
    500: '#5a2812',
    950: '#000000',
  },
}
SCSS
$custom: #5a2812;
$custom-light: #8e6351;
$custom-dark: #000000;
JSON
{
  "hex": "#5a2812",
  "rgb": {
    "r": 90,
    "g": 40,
    "b": 18
  },
  "hsl": {
    "h": 18.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.34226,
    "c": 0.08081,
    "h": 42.9
  },
  "luminance": 0.03735
}

Semantic roles & 50–950 ramp

primary
#5A2812
secondary
#357693
accent
#B5EA3E
background
#F9F5F4
surface
#F1EAE7
border
#CBC6C3
text
#0D0502
muted
#7E7978

Preview Lab

Preview with #5A2812

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

Preview Lab → · Contrast checker → · Palette generator →

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