#5B6212#5B6212

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

Color values

HEX#5B6212
RGBrgb(91, 98, 18)
HSLhsl(65, 69%, 23%)
HSVhsv(65, 82%, 38%)
CMYKcmyk(7.1%, 0%, 81.6%, 61.6%)
CIE-LABlab(39.59, -13.47, 41.09)
CIE-LCHlch(39.59, 43.25, 108.15°)
OKLaboklab(47.46% -0.0414 0.09)
OKLCHoklch(47.46% 0.099 114.7)
XYZxyz(8.7915, 11.0033, 2.2329)
Luminance0.1100 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6212 #191262
analogous
#624112 #5B6212 #336212
triadic
#5B6212 #125B62 #62125B
tetradic
#5B6212 #126241 #191262 #621233
square
#5B6212 #126241 #191262 #621233
split-complementary
#5B6212 #123362 #411262
monochromatic
#181A05 #2B2E09 #5B6212 #8B961B #BBC925

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B6212#FFFFFF#000000##FFFFFF
##5B62121.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: #5b6212;
/* rgb */ color: rgb(91, 98, 18);
/* oklch */ color: oklch(47.5% 0.099 114.7);
Tailwind
colors: {
  custom: {
    50: '#8c8e58',
    500: '#5b6212',
    950: '#000000',
  },
}
SCSS
$custom: #5b6212;
$custom-light: #8c8e58;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6212",
  "rgb": {
    "r": 91,
    "g": 98,
    "b": 18
  },
  "hsl": {
    "h": 65.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.47458,
    "c": 0.09905,
    "h": 114.7
  },
  "luminance": 0.11003
}

Semantic roles & 50–950 ramp

primary
#5B6212
secondary
#3F369A
accent
#3CEC4B
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5B6212

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

Preview Lab → · Contrast checker → · Palette generator →

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