#5B6211#5B6211

#5B6211 is a mid, moderate yellow. Relative luminance 0.110; OKLCH L 47.5% C 0.100 H 114.7°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#5B6211
RGBrgb(91, 98, 17)
HSLhsl(65, 70%, 23%)
HSVhsv(65, 83%, 38%)
CMYKcmyk(7.1%, 0%, 82.7%, 61.6%)
CIE-LABlab(39.58, -13.52, 41.43)
CIE-LCHlch(39.58, 43.58, 108.07°)
OKLaboklab(47.45% -0.0416 0.0905)
OKLCHoklch(47.45% 0.1 114.7)
XYZxyz(8.7835, 11.0001, 2.1907)
Luminance0.1100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6211 #181162
analogous
#624011 #5B6211 #336211
triadic
#5B6211 #115B62 #62115B
tetradic
#5B6211 #116240 #181162 #621133
square
#5B6211 #116240 #181162 #621133
split-complementary
#5B6211 #113362 #401162
monochromatic
#181A05 #2B2E08 #5B6211 #8B961A #BCCA23

Accessibility & contrast

On white

6.56
#5B6211 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#5B6211 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6211
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6211#FFFFFF#000000##FFFFFF
##5B62111.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6A5D00
Deuteranopia (green-blind)
#695E19
Tritanopia (blue-blind)
#625C53
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5b6211;
/* rgb */ color: rgb(91, 98, 17);
/* oklch */ color: oklch(47.5% 0.100 114.7);
Tailwind
colors: {
  custom: {
    50: '#8c8e57',
    500: '#5b6211',
    950: '#000000',
  },
}
SCSS
$custom: #5b6211;
$custom-light: #8c8e57;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6211",
  "rgb": {
    "r": 91,
    "g": 98,
    "b": 17
  },
  "hsl": {
    "h": 65.185,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.47452,
    "c": 0.09962,
    "h": 114.7
  },
  "luminance": 0.11
}

Semantic roles & 50–950 ramp

primary
#5B6211
secondary
#3D349A
accent
#3BED4A
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5B6211

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

Preview Lab → · Contrast checker → · Palette generator →

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