#5B6812#5B6812

#5B6812 is a mid, moderate yellow. Relative luminance 0.122; OKLCH L 49.0% C 0.106 H 118.3°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5B6812
RGBrgb(91, 104, 18)
HSLhsl(69, 70%, 24%)
HSVhsv(69, 83%, 41%)
CMYKcmyk(12.5%, 0%, 82.7%, 59.2%)
CIE-LABlab(41.48, -16.76, 42.82)
CIE-LCHlch(41.48, 45.98, 111.37°)
OKLaboklab(48.98% -0.0504 0.0937)
OKLCHoklch(48.98% 0.106 118.3)
XYZxyz(9.3741, 12.1685, 2.4271)
Luminance0.1217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6812 #1F1268
analogous
#684A12 #5B6812 #306812
triadic
#5B6812 #125B68 #68125B
tetradic
#5B6812 #12684A #1F1268 #681230
square
#5B6812 #12684A #1F1268 #681230
split-complementary
#5B6812 #123068 #4A1268
monochromatic
#171A05 #2D3409 #5B6812 #899C1B #B6D024

Accessibility & contrast

On white

6.12
#5B6812 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5B6812 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B6812
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6812#FFFFFF#000000##FFFFFF
##5B68121.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6200
Deuteranopia (green-blind)
#6E621A
Tritanopia (blue-blind)
#616258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b6812;
/* rgb */ color: rgb(91, 104, 18);
/* oklch */ color: oklch(49.0% 0.106 118.3);
Tailwind
colors: {
  custom: {
    50: '#8c9359',
    500: '#5b6812',
    950: '#000000',
  },
}
SCSS
$custom: #5b6812;
$custom-light: #8c9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6812",
  "rgb": {
    "r": 91,
    "g": 104,
    "b": 18
  },
  "hsl": {
    "h": 69.07,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.48982,
    "c": 0.10639,
    "h": 118.3
  },
  "luminance": 0.12168
}

Semantic roles & 50–950 ramp

primary
#5B6812
secondary
#4636A0
accent
#3BED56
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6812

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

Preview Lab → · Contrast checker → · Palette generator →

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