#5B6817#5B6817

#5B6817 is a mid, moderate yellow. Relative luminance 0.122; OKLCH L 49.0% C 0.103 H 118.5°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#5B6817
RGBrgb(91, 104, 23)
HSLhsl(70, 64%, 25%)
HSVhsv(70, 78%, 41%)
CMYKcmyk(12.5%, 0%, 77.9%, 59.2%)
CIE-LABlab(41.51, -16.51, 41.08)
CIE-LCHlch(41.51, 44.27, 111.89°)
OKLaboklab(49.01% -0.0493 0.0909)
OKLCHoklch(49.01% 0.103 118.5)
XYZxyz(9.4196, 12.1867, 2.6665)
Luminance0.1219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6817 #241768
analogous
#684D17 #5B6817 #326817
triadic
#5B6817 #175B68 #68175B
tetradic
#5B6817 #17684D #241768 #681732
square
#5B6817 #17684D #241768 #681732
split-complementary
#5B6817 #173268 #4D1768
monochromatic
#161906 #2F360C #5B6817 #879A22 #B3CC2D

Accessibility & contrast

On white

6.11
#5B6817 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5B6817 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6817
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6817#FFFFFF#000000##FFFFFF
##5B68171.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6206
Deuteranopia (green-blind)
#6E621E
Tritanopia (blue-blind)
#616259
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b6817;
/* rgb */ color: rgb(91, 104, 23);
/* oklch */ color: oklch(49.0% 0.103 118.5);
Tailwind
colors: {
  custom: {
    50: '#8c935b',
    500: '#5b6817',
    950: '#000000',
  },
}
SCSS
$custom: #5b6817;
$custom-light: #8c935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6817",
  "rgb": {
    "r": 91,
    "g": 104,
    "b": 23
  },
  "hsl": {
    "h": 69.63,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.49014,
    "c": 0.10343,
    "h": 118.5
  },
  "luminance": 0.12187
}

Semantic roles & 50–950 ramp

primary
#5B6817
secondary
#4C3D9E
accent
#41E75C
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6817

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

Preview Lab → · Contrast checker → · Palette generator →

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