#5B7314#5B7314

#5B7314 is a mid, moderate yellow-green. Relative luminance 0.145; OKLCH L 51.8% C 0.119 H 123.5°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5B7314
RGBrgb(91, 115, 20)
HSLhsl(75, 70%, 26%)
HSVhsv(75, 83%, 45%)
CMYKcmyk(20.9%, 0%, 82.6%, 54.9%)
CIE-LABlab(44.99, -22.44, 45.36)
CIE-LCHlch(44.99, 50.61, 116.32°)
OKLaboklab(51.82% -0.0658 0.0994)
OKLCHoklch(51.82% 0.119 123.5)
XYZxyz(10.5715, 14.5360, 2.9105)
Luminance0.1454 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7314 #2C1473
analogous
#735C14 #5B7314 #2C7314
triadic
#5B7314 #145B73 #73145B
tetradic
#5B7314 #14735C #2C1473 #73142C
square
#5B7314 #14735C #2C1473 #73142C
split-complementary
#5B7314 #142C73 #5C1473
monochromatic
#151A05 #323F0B #5B7314 #84A71D #ADDA28

Accessibility & contrast

On white

5.37
#5B7314 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5B7314 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7314
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7314#FFFFFF#000000##FFFFFF
##5B73141.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#776A1E
Tritanopia (blue-blind)
#606D62
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b7314;
/* rgb */ color: rgb(91, 115, 20);
/* oklch */ color: oklch(51.8% 0.119 123.5);
Tailwind
colors: {
  custom: {
    50: '#8d9b5b',
    500: '#5b7314',
    950: '#000000',
  },
}
SCSS
$custom: #5b7314;
$custom-light: #8d9b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7314",
  "rgb": {
    "r": 91,
    "g": 115,
    "b": 20
  },
  "hsl": {
    "h": 75.158,
    "s": 70.37,
    "l": 26.471
  },
  "oklch": {
    "l": 0.51818,
    "c": 0.11924,
    "h": 123.5
  },
  "luminance": 0.14536
}

Semantic roles & 50–950 ramp

primary
#5B7314
secondary
#563AA9
accent
#3BED68
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7314

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

Preview Lab → · Contrast checker → · Palette generator →

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