#5B6012#5B6012

#5B6012 is a mid, moderate yellow. Relative luminance 0.106; OKLCH L 47.0% C 0.097 H 113.3°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5B6012
RGBrgb(91, 96, 18)
HSLhsl(64, 68%, 22%)
HSVhsv(64, 81%, 38%)
CMYKcmyk(5.2%, 0%, 81.3%, 62.4%)
CIE-LABlab(38.96, -12.35, 40.52)
CIE-LCHlch(38.96, 42.36, 106.96°)
OKLaboklab(46.95% -0.0383 0.0888)
OKLCHoklch(46.95% 0.097 113.3)
XYZxyz(8.6067, 10.6337, 2.1713)
Luminance0.1063 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6012 #171260
analogous
#603E12 #5B6012 #346012
triadic
#5B6012 #125B60 #60125B
tetradic
#5B6012 #12603E #171260 #601234
square
#5B6012 #12603E #171260 #601234
split-complementary
#5B6012 #123460 #3E1260
monochromatic
#181A05 #2A2C08 #5B6012 #8C941C #BDC725

Accessibility & contrast

On white

6.72
#5B6012 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#5B6012 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6012
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6012#FFFFFF#000000##FFFFFF
##5B60121.006.723.136.72
#FFFFFF6.721.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#685B01
Deuteranopia (green-blind)
#685D19
Tritanopia (blue-blind)
#625A51
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b6012;
/* rgb */ color: rgb(91, 96, 18);
/* oklch */ color: oklch(47.0% 0.097 113.3);
Tailwind
colors: {
  custom: {
    50: '#8c8d57',
    500: '#5b6012',
    950: '#000000',
  },
}
SCSS
$custom: #5b6012;
$custom-light: #8c8d57;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6012",
  "rgb": {
    "r": 91,
    "g": 96,
    "b": 18
  },
  "hsl": {
    "h": 63.846,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.46953,
    "c": 0.09667,
    "h": 113.3
  },
  "luminance": 0.10634
}

Semantic roles & 50–950 ramp

primary
#5B6012
secondary
#3C3698
accent
#3DEB48
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5B6012

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

Preview Lab → · Contrast checker → · Palette generator →

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