#5B6112#5B6112

#5B6112 is a mid, moderate yellow. Relative luminance 0.108; OKLCH L 47.2% C 0.098 H 114.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#5B6112
RGBrgb(91, 97, 18)
HSLhsl(65, 69%, 23%)
HSVhsv(65, 81%, 38%)
CMYKcmyk(6.2%, 0%, 81.4%, 62%)
CIE-LABlab(39.27, -12.92, 40.81)
CIE-LCHlch(39.27, 42.80, 107.56°)
OKLaboklab(47.21% -0.0398 0.0894)
OKLCHoklch(47.21% 0.098 114)
XYZxyz(8.6985, 10.8174, 2.2019)
Luminance0.1082 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6112 #181261
analogous
#614012 #5B6112 #336112
triadic
#5B6112 #125B61 #61125B
tetradic
#5B6112 #126140 #181261 #611233
square
#5B6112 #126140 #181261 #611233
split-complementary
#5B6112 #123361 #401261
monochromatic
#181A05 #2B2D08 #5B6112 #8B951C #BCC825

Accessibility & contrast

On white

6.64
#5B6112 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5B6112 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6112
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6112#FFFFFF#000000##FFFFFF
##5B61121.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#695C01
Deuteranopia (green-blind)
#695D19
Tritanopia (blue-blind)
#625B52
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b6112;
/* rgb */ color: rgb(91, 97, 18);
/* oklch */ color: oklch(47.2% 0.098 114.0);
Tailwind
colors: {
  custom: {
    50: '#8c8d58',
    500: '#5b6112',
    950: '#000000',
  },
}
SCSS
$custom: #5b6112;
$custom-light: #8c8d58;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6112",
  "rgb": {
    "r": 91,
    "g": 97,
    "b": 18
  },
  "hsl": {
    "h": 64.557,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.47205,
    "c": 0.09786,
    "h": 114
  },
  "luminance": 0.10817
}

Semantic roles & 50–950 ramp

primary
#5B6112
secondary
#3D3699
accent
#3CEC4A
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C03
muted
#7D7D78

Preview Lab

Preview with #5B6112

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

Preview Lab → · Contrast checker → · Palette generator →

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