#5E5212#5E5212

#5E5212 is a dark, moderate yellow. Relative luminance 0.085; OKLCH L 43.8% C 0.082 H 98.1°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5E5212
RGBrgb(94, 82, 18)
HSLhsl(51, 68%, 22%)
HSVhsv(51, 81%, 37%)
CMYKcmyk(0%, 12.8%, 80.9%, 63.1%)
CIE-LABlab(34.92, -2.73, 36.87)
CIE-LCHlch(34.92, 36.97, 94.24°)
OKLaboklab(43.81% -0.0115 0.0809)
OKLCHoklch(43.81% 0.082 98.1)
XYZxyz(7.7430, 8.4583, 1.7969)
Luminance0.0846 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5212 #121E5E
analogous
#5E2C12 #5E5212 #445E12
triadic
#5E5212 #125E52 #52125E
tetradic
#5E5212 #125E2C #121E5E #5E1244
square
#5E5212 #125E2C #121E5E #5E1244
split-complementary
#5E5212 #12445E #2C125E
monochromatic
#1A1605 #2B2508 #5E5212 #917F1C #C5AC26

Accessibility & contrast

On white

7.80
#5E5212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5E5212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E5212
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5212#FFFFFF#000000##FFFFFF
##5E52121.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e5212;
/* rgb */ color: rgb(94, 82, 18);
/* oklch */ color: oklch(43.8% 0.082 98.1);
Tailwind
colors: {
  custom: {
    50: '#8f8255',
    500: '#5e5212',
    950: '#000000',
  },
}
SCSS
$custom: #5e5212;
$custom-light: #8f8255;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5212",
  "rgb": {
    "r": 94,
    "g": 82,
    "b": 18
  },
  "hsl": {
    "h": 50.526,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.43805,
    "c": 0.0817,
    "h": 98.1
  },
  "luminance": 0.08458
}

Semantic roles & 50–950 ramp

primary
#5E5212
secondary
#354596
accent
#58EB3D
background
#F9F7F5
surface
#F1EEE9
border
#CBC9C5
text
#0D0A03
muted
#7E7C78

Preview Lab

Preview with #5E5212

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

Preview Lab → · Contrast checker → · Palette generator →

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