#5B6612#5B6612

#5B6612 is a mid, moderate yellow. Relative luminance 0.118; OKLCH L 48.5% C 0.104 H 117.2°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#5B6612
RGBrgb(91, 102, 18)
HSLhsl(68, 70%, 24%)
HSVhsv(68, 82%, 40%)
CMYKcmyk(10.8%, 0%, 82.4%, 60%)
CIE-LABlab(40.85, -15.67, 42.25)
CIE-LCHlch(40.85, 45.06, 110.36°)
OKLaboklab(48.47% -0.0474 0.0925)
OKLCHoklch(48.47% 0.104 117.2)
XYZxyz(9.1752, 11.7707, 2.3608)
Luminance0.1177 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6612 #1D1266
analogous
#664712 #5B6612 #316612
triadic
#5B6612 #125B66 #66125B
tetradic
#5B6612 #126647 #1D1266 #661231
square
#5B6612 #126647 #1D1266 #661231
split-complementary
#5B6612 #123166 #471266
monochromatic
#171A05 #2D3209 #5B6612 #899A1B #B8CE24

Accessibility & contrast

On white

6.26
#5B6612 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#5B6612 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6612
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6612#FFFFFF#000000##FFFFFF
##5B66121.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6000
Deuteranopia (green-blind)
#6C611A
Tritanopia (blue-blind)
#616057
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b6612;
/* rgb */ color: rgb(91, 102, 18);
/* oklch */ color: oklch(48.5% 0.104 117.2);
Tailwind
colors: {
  custom: {
    50: '#8c9158',
    500: '#5b6612',
    950: '#000000',
  },
}
SCSS
$custom: #5b6612;
$custom-light: #8c9158;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6612",
  "rgb": {
    "r": 91,
    "g": 102,
    "b": 18
  },
  "hsl": {
    "h": 67.857,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.48473,
    "c": 0.10392,
    "h": 117.2
  },
  "luminance": 0.11771
}

Semantic roles & 50–950 ramp

primary
#5B6612
secondary
#44369E
accent
#3BED52
background
#F8F8F5
surface
#F0F0E9
border
#CBCBC5
text
#0C0C04
muted
#7D7D79

Preview Lab

Preview with #5B6612

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

Preview Lab → · Contrast checker → · Palette generator →

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