#5B6815#5B6815

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

Color values

HEX#5B6815
RGBrgb(91, 104, 21)
HSLhsl(69, 66%, 25%)
HSVhsv(69, 80%, 41%)
CMYKcmyk(12.5%, 0%, 79.8%, 59.2%)
CIE-LABlab(41.50, -16.61, 41.80)
CIE-LCHlch(41.50, 44.98, 111.67°)
OKLaboklab(49% -0.0498 0.0921)
OKLCHoklch(49% 0.105 118.4)
XYZxyz(9.4003, 12.1790, 2.5649)
Luminance0.1218 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6815 #221568
analogous
#684C15 #5B6815 #316815
triadic
#5B6815 #155B68 #68155B
tetradic
#5B6815 #15684C #221568 #681531
square
#5B6815 #15684C #221568 #681531
split-complementary
#5B6815 #153168 #4C1568
monochromatic
#161905 #2E350B #5B6815 #889B1F #B4CE2A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B6815#FFFFFF#000000##FFFFFF
##5B68151.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)
#6F6203
Deuteranopia (green-blind)
#6E621D
Tritanopia (blue-blind)
#616258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b6815;
/* rgb */ color: rgb(91, 104, 21);
/* oklch */ color: oklch(49.0% 0.105 118.4);
Tailwind
colors: {
  custom: {
    50: '#8c935a',
    500: '#5b6815',
    950: '#000000',
  },
}
SCSS
$custom: #5b6815;
$custom-light: #8c935a;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6815",
  "rgb": {
    "r": 91,
    "g": 104,
    "b": 21
  },
  "hsl": {
    "h": 69.398,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.49001,
    "c": 0.10467,
    "h": 118.4
  },
  "luminance": 0.12179
}

Semantic roles & 50–950 ramp

primary
#5B6815
secondary
#4A3A9F
accent
#3EE959
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6815

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

Preview Lab → · Contrast checker → · Palette generator →

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