#5E5218#5E5218

#5E5218 is a dark, moderate yellow. Relative luminance 0.085; OKLCH L 43.9% C 0.077 H 97.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5E5218
RGBrgb(94, 82, 24)
HSLhsl(50, 59%, 23%)
HSVhsv(50, 74%, 37%)
CMYKcmyk(0%, 12.8%, 74.5%, 63.1%)
CIE-LABlab(34.96, -2.41, 34.32)
CIE-LCHlch(34.96, 34.40, 94.01°)
OKLaboklab(43.86% -0.0098 0.0768)
OKLCHoklch(43.86% 0.077 97.3)
XYZxyz(7.7986, 8.4806, 2.0901)
Luminance0.0848 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5218 #18245E
analogous
#5E2F18 #5E5218 #475E18
triadic
#5E5218 #185E52 #52185E
tetradic
#5E5218 #185E2F #18245E #5E1847
square
#5E5218 #185E2F #18245E #5E1847
split-complementary
#5E5218 #18475E #2F185E
monochromatic
#181506 #2D270C #5E5218 #8F7D24 #C0A731

Accessibility & contrast

On white

7.79
#5E5218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5E5218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E5218
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5218#FFFFFF#000000##FFFFFF
##5E52181.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B5010
Deuteranopia (green-blind)
#5E541B
Tritanopia (blue-blind)
#664B46
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5e5218;
/* rgb */ color: rgb(94, 82, 24);
/* oklch */ color: oklch(43.9% 0.077 97.3);
Tailwind
colors: {
  custom: {
    50: '#8e8259',
    500: '#5e5218',
    950: '#000000',
  },
}
SCSS
$custom: #5e5218;
$custom-light: #8e8259;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5218",
  "rgb": {
    "r": 94,
    "g": 82,
    "b": 24
  },
  "hsl": {
    "h": 49.714,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.43855,
    "c": 0.07738,
    "h": 97.3
  },
  "luminance": 0.0848
}

Semantic roles & 50–950 ramp

primary
#5E5218
secondary
#3D4C94
accent
#60E345
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A04
muted
#7E7C79

Preview Lab

Preview with #5E5218

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

Preview Lab → · Contrast checker → · Palette generator →

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