#5E5817#5E5817

#5E5817 is a mid, moderate yellow. Relative luminance 0.094; OKLCH L 45.3% C 0.084 H 104.0°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5E5817
RGBrgb(94, 88, 23)
HSLhsl(55, 61%, 23%)
HSVhsv(55, 76%, 37%)
CMYKcmyk(0%, 6.4%, 75.5%, 63.1%)
CIE-LABlab(36.78, -6.04, 36.58)
CIE-LCHlch(36.78, 37.08, 99.37°)
OKLaboklab(45.3% -0.0203 0.0813)
OKLCHoklch(45.3% 0.084 104)
XYZxyz(8.2608, 9.4213, 2.1938)
Luminance0.0942 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E5817 #171D5E
analogous
#5E3517 #5E5817 #405E17
triadic
#5E5817 #175E58 #58175E
tetradic
#5E5817 #175E35 #171D5E #5E1740
square
#5E5817 #175E35 #171D5E #5E1740
split-complementary
#5E5817 #17405E #35175E
monochromatic
#191706 #2D2A0B #5E5817 #8F8623 #C0B42F

Accessibility & contrast

On white

7.28
#5E5817 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5E5817 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E5817
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E5817#FFFFFF#000000##FFFFFF
##5E58171.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#60550D
Deuteranopia (green-blind)
#62581B
Tritanopia (blue-blind)
#66514B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5e5817;
/* rgb */ color: rgb(94, 88, 23);
/* oklch */ color: oklch(45.3% 0.084 104.0);
Tailwind
colors: {
  custom: {
    50: '#8e8659',
    500: '#5e5817',
    950: '#000000',
  },
}
SCSS
$custom: #5e5817;
$custom-light: #8e8659;
$custom-dark: #000000;
JSON
{
  "hex": "#5e5817",
  "rgb": {
    "r": 94,
    "g": 88,
    "b": 23
  },
  "hsl": {
    "h": 54.93,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.45296,
    "c": 0.08383,
    "h": 104
  },
  "luminance": 0.09421
}

Semantic roles & 50–950 ramp

primary
#5E5817
secondary
#3C4495
accent
#51E444
background
#F9F8F5
surface
#F1EFE9
border
#CBCAC5
text
#0D0B04
muted
#7E7C79

Preview Lab

Preview with #5E5817

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

Preview Lab → · Contrast checker → · Palette generator →

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