#5B6813#5B6813

#5B6813 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.11:1 contrast (WCAG AA passes).

Color values

HEX#5B6813
RGBrgb(91, 104, 19)
HSLhsl(69, 69%, 24%)
HSVhsv(69, 82%, 41%)
CMYKcmyk(12.5%, 0%, 81.7%, 59.2%)
CIE-LABlab(41.49, -16.71, 42.49)
CIE-LCHlch(41.49, 45.66, 111.47°)
OKLaboklab(48.99% -0.0502 0.0932)
OKLCHoklch(48.99% 0.106 118.3)
XYZxyz(9.3825, 12.1719, 2.4711)
Luminance0.1217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6813 #201368
analogous
#684B13 #5B6813 #316813
triadic
#5B6813 #135B68 #68135B
tetradic
#5B6813 #13684B #201368 #681331
square
#5B6813 #13684B #201368 #681331
split-complementary
#5B6813 #133168 #4B1368
monochromatic
#171A05 #2E340A #5B6813 #889C1C #B6CF26

Accessibility & contrast

On white

6.11
#5B6813 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B6813
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B6813#FFFFFF#000000##FFFFFF
##5B68131.006.113.436.11
#FFFFFF6.111.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b6813;
/* rgb */ color: rgb(91, 104, 19);
/* oklch */ color: oklch(49.0% 0.106 118.3);
Tailwind
colors: {
  custom: {
    50: '#8c9359',
    500: '#5b6813',
    950: '#000000',
  },
}
SCSS
$custom: #5b6813;
$custom-light: #8c9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6813",
  "rgb": {
    "r": 91,
    "g": 104,
    "b": 19
  },
  "hsl": {
    "h": 69.176,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.48988,
    "c": 0.10584,
    "h": 118.3
  },
  "luminance": 0.12172
}

Semantic roles & 50–950 ramp

primary
#5B6813
secondary
#47379F
accent
#3CEC57
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6813

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

Preview Lab → · Contrast checker → · Palette generator →

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