#5B6811#5B6811

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

Color values

HEX#5B6811
RGBrgb(91, 104, 17)
HSLhsl(69, 72%, 24%)
HSVhsv(69, 84%, 41%)
CMYKcmyk(12.5%, 0%, 83.7%, 59.2%)
CIE-LABlab(41.48, -16.80, 43.14)
CIE-LCHlch(41.48, 46.30, 111.28°)
OKLaboklab(48.98% -0.0506 0.0942)
OKLCHoklch(48.98% 0.107 118.3)
XYZxyz(9.3661, 12.1653, 2.3849)
Luminance0.1216 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6811 #1E1168
analogous
#684911 #5B6811 #2F6811
triadic
#5B6811 #115B68 #68115B
tetradic
#5B6811 #116849 #1E1168 #68112F
square
#5B6811 #116849 #1E1168 #68112F
split-complementary
#5B6811 #112F68 #491168
monochromatic
#171A04 #2D3308 #5B6811 #899D1A #B7D122

Accessibility & contrast

On white

6.12
#5B6811 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5B6811 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6811
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6811#FFFFFF#000000##FFFFFF
##5B68111.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706200
Deuteranopia (green-blind)
#6E621A
Tritanopia (blue-blind)
#616258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b6811;
/* rgb */ color: rgb(91, 104, 17);
/* oklch */ color: oklch(49.0% 0.107 118.3);
Tailwind
colors: {
  custom: {
    50: '#8c9358',
    500: '#5b6811',
    950: '#000000',
  },
}
SCSS
$custom: #5b6811;
$custom-light: #8c9358;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6811",
  "rgb": {
    "r": 91,
    "g": 104,
    "b": 17
  },
  "hsl": {
    "h": 68.966,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.48977,
    "c": 0.10691,
    "h": 118.3
  },
  "luminance": 0.12165
}

Semantic roles & 50–950 ramp

primary
#5B6811
secondary
#4535A0
accent
#39EF54
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6811

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

Preview Lab → · Contrast checker → · Palette generator →

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