#5B6816#5B6816

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

Color values

HEX#5B6816
RGBrgb(91, 104, 22)
HSLhsl(70, 65%, 25%)
HSVhsv(70, 79%, 41%)
CMYKcmyk(12.5%, 0%, 78.8%, 59.2%)
CIE-LABlab(41.51, -16.56, 41.45)
CIE-LCHlch(41.51, 44.63, 111.78°)
OKLaboklab(49.01% -0.0495 0.0915)
OKLCHoklch(49.01% 0.104 118.4)
XYZxyz(9.4097, 12.1828, 2.6147)
Luminance0.1218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6816 #231668
analogous
#684C16 #5B6816 #326816
triadic
#5B6816 #165B68 #68165B
tetradic
#5B6816 #16684C #231668 #681632
square
#5B6816 #16684C #231668 #681632
split-complementary
#5B6816 #163268 #4C1668
monochromatic
#161905 #2F350B #5B6816 #879B21 #B3CD2B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B6816#FFFFFF#000000##FFFFFF
##5B68161.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)
#6F6205
Deuteranopia (green-blind)
#6E621D
Tritanopia (blue-blind)
#616258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b6816;
/* rgb */ color: rgb(91, 104, 22);
/* oklch */ color: oklch(49.0% 0.104 118.4);
Tailwind
colors: {
  custom: {
    50: '#8c935a',
    500: '#5b6816',
    950: '#000000',
  },
}
SCSS
$custom: #5b6816;
$custom-light: #8c935a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6816",
  "rgb": {
    "r": 91,
    "g": 104,
    "b": 22
  },
  "hsl": {
    "h": 69.512,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.49007,
    "c": 0.10407,
    "h": 118.4
  },
  "luminance": 0.12183
}

Semantic roles & 50–950 ramp

primary
#5B6816
secondary
#4B3B9F
accent
#40E85A
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6816

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

Preview Lab → · Contrast checker → · Palette generator →

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