#5E5912#5E5912

#5E5912 is a mid, moderate yellow. Relative luminance 0.096; OKLCH L 45.5% C 0.088 H 105.2°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5E5912
RGBrgb(94, 89, 18)
HSLhsl(56, 68%, 22%)
HSVhsv(56, 81%, 37%)
CMYKcmyk(0%, 5.3%, 80.9%, 63.1%)
CIE-LABlab(37.06, -6.88, 38.87)
CIE-LCHlch(37.06, 39.47, 100.04°)
OKLaboklab(45.5% -0.0232 0.0851)
OKLCHoklch(45.5% 0.088 105.2)
XYZxyz(8.2980, 9.5684, 1.9819)
Luminance0.0957 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5912 #12175E
analogous
#5E3312 #5E5912 #3D5E12
triadic
#5E5912 #125E59 #59125E
tetradic
#5E5912 #125E33 #12175E #5E123D
square
#5E5912 #125E33 #12175E #5E123D
split-complementary
#5E5912 #123D5E #33125E
monochromatic
#1A1805 #2B2808 #5E5912 #918A1C #C5BA26

Accessibility & contrast

On white

7.21
#5E5912 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5E5912 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E5912
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5912#FFFFFF#000000##FFFFFF
##5E59121.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#625604
Deuteranopia (green-blind)
#635917
Tritanopia (blue-blind)
#66524C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5e5912;
/* rgb */ color: rgb(94, 89, 18);
/* oklch */ color: oklch(45.5% 0.088 105.2);
Tailwind
colors: {
  custom: {
    50: '#8f8756',
    500: '#5e5912',
    950: '#000000',
  },
}
SCSS
$custom: #5e5912;
$custom-light: #8f8756;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5912",
  "rgb": {
    "r": 94,
    "g": 89,
    "b": 18
  },
  "hsl": {
    "h": 56.053,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.45503,
    "c": 0.08823,
    "h": 105.2
  },
  "luminance": 0.09568
}

Semantic roles & 50–950 ramp

primary
#5E5912
secondary
#353C96
accent
#48EB3D
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B03
muted
#7E7C78

Preview Lab

Preview with #5E5912

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

Preview Lab → · Contrast checker → · Palette generator →

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