#5B6818#5B6818

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

Color values

HEX#5B6818
RGBrgb(91, 104, 24)
HSLhsl(70, 63%, 25%)
HSVhsv(70, 77%, 41%)
CMYKcmyk(12.5%, 0%, 76.9%, 59.2%)
CIE-LABlab(41.52, -16.45, 40.70)
CIE-LCHlch(41.52, 43.90, 112.01°)
OKLaboklab(49.02% -0.0491 0.0903)
OKLCHoklch(49.02% 0.103 118.5)
XYZxyz(9.4298, 12.1908, 2.7203)
Luminance0.1219 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6818 #251868
analogous
#684D18 #5B6818 #336818
triadic
#5B6818 #185B68 #68185B
tetradic
#5B6818 #18684D #251868 #681833
square
#5B6818 #18684D #251868 #681833
split-complementary
#5B6818 #183368 #4D1868
monochromatic
#161906 #2F360D #5B6818 #879A23 #B2CB2F

Accessibility & contrast

On white

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

On black

3.44
#5B6818 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5B6818#FFFFFF#000000##FFFFFF
##5B68181.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6F6208
Deuteranopia (green-blind)
#6E621F
Tritanopia (blue-blind)
#616259
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b6818;
/* rgb */ color: rgb(91, 104, 24);
/* oklch */ color: oklch(49.0% 0.103 118.5);
Tailwind
colors: {
  custom: {
    50: '#8c935b',
    500: '#5b6818',
    950: '#000000',
  },
}
SCSS
$custom: #5b6818;
$custom-light: #8c935b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6818",
  "rgb": {
    "r": 91,
    "g": 104,
    "b": 24
  },
  "hsl": {
    "h": 69.75,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.49022,
    "c": 0.10278,
    "h": 118.5
  },
  "luminance": 0.12191
}

Semantic roles & 50–950 ramp

primary
#5B6818
secondary
#4D3E9E
accent
#42E65D
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6818

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

Preview Lab → · Contrast checker → · Palette generator →

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