#5B6512#5B6512

#5B6512 is a mid, moderate yellow. Relative luminance 0.116; OKLCH L 48.2% C 0.103 H 116.6°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5B6512
RGBrgb(91, 101, 18)
HSLhsl(67, 70%, 23%)
HSVhsv(67, 82%, 40%)
CMYKcmyk(9.9%, 0%, 82.2%, 60.4%)
CIE-LABlab(40.53, -15.13, 41.96)
CIE-LCHlch(40.53, 44.60, 109.83°)
OKLaboklab(48.22% -0.0459 0.0918)
OKLCHoklch(48.22% 0.103 116.6)
XYZxyz(9.0775, 11.5753, 2.3282)
Luminance0.1158 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6512 #1C1265
analogous
#654512 #5B6512 #316512
triadic
#5B6512 #125B65 #65125B
tetradic
#5B6512 #126545 #1C1265 #651231
square
#5B6512 #126545 #1C1265 #651231
split-complementary
#5B6512 #123165 #451265
monochromatic
#171A05 #2C3109 #5B6512 #8A991B #B9CD25

Accessibility & contrast

On white

6.33
#5B6512 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5B6512 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6512
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6512#FFFFFF#000000##FFFFFF
##5B65121.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D5F00
Deuteranopia (green-blind)
#6C601A
Tritanopia (blue-blind)
#615F56
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b6512;
/* rgb */ color: rgb(91, 101, 18);
/* oklch */ color: oklch(48.2% 0.103 116.6);
Tailwind
colors: {
  custom: {
    50: '#8c9058',
    500: '#5b6512',
    950: '#000000',
  },
}
SCSS
$custom: #5b6512;
$custom-light: #8c9058;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6512",
  "rgb": {
    "r": 91,
    "g": 101,
    "b": 18
  },
  "hsl": {
    "h": 67.229,
    "s": 69.748,
    "l": 23.333
  },
  "oklch": {
    "l": 0.48218,
    "c": 0.10269,
    "h": 116.6
  },
  "luminance": 0.11575
}

Semantic roles & 50–950 ramp

primary
#5B6512
secondary
#42369D
accent
#3BED51
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5B6512

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

Preview Lab → · Contrast checker → · Palette generator →

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