#5B6814#5B6814

#5B6814 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#5B6814
RGBrgb(91, 104, 20)
HSLhsl(69, 68%, 24%)
HSVhsv(69, 81%, 41%)
CMYKcmyk(12.5%, 0%, 80.8%, 59.2%)
CIE-LABlab(41.49, -16.66, 42.15)
CIE-LCHlch(41.49, 45.33, 111.57°)
OKLaboklab(48.99% -0.05 0.0926)
OKLCHoklch(48.99% 0.105 118.4)
XYZxyz(9.3912, 12.1754, 2.5170)
Luminance0.1217 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B6814 #211468
analogous
#684B14 #5B6814 #316814
triadic
#5B6814 #145B68 #68145B
tetradic
#5B6814 #14684B #211468 #681431
square
#5B6814 #14684B #211468 #681431
split-complementary
#5B6814 #143168 #4B1468
monochromatic
#161A05 #2E350A #5B6814 #889B1E #B5CF28

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B6814#FFFFFF#000000##FFFFFF
##5B68141.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)
#6F6201
Deuteranopia (green-blind)
#6E621C
Tritanopia (blue-blind)
#616258
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5b6814;
/* rgb */ color: rgb(91, 104, 20);
/* oklch */ color: oklch(49.0% 0.105 118.4);
Tailwind
colors: {
  custom: {
    50: '#8c9359',
    500: '#5b6814',
    950: '#000000',
  },
}
SCSS
$custom: #5b6814;
$custom-light: #8c9359;
$custom-dark: #000000;
JSON
{
  "hex": "#5b6814",
  "rgb": {
    "r": 91,
    "g": 104,
    "b": 20
  },
  "hsl": {
    "h": 69.286,
    "s": 67.742,
    "l": 24.314
  },
  "oklch": {
    "l": 0.48994,
    "c": 0.10527,
    "h": 118.4
  },
  "luminance": 0.12175
}

Semantic roles & 50–950 ramp

primary
#5B6814
secondary
#49399F
accent
#3DEB58
background
#F8F9F5
surface
#F0F1E9
border
#CBCBC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5B6814

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

Preview Lab → · Contrast checker → · Palette generator →

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