#5B7514#5B7514

#5B7514 is a mid, vivid yellow-green. Relative luminance 0.150; OKLCH L 52.3% C 0.122 H 124.3°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5B7514
RGBrgb(91, 117, 20)
HSLhsl(76, 71%, 27%)
HSVhsv(76, 83%, 46%)
CMYKcmyk(22.2%, 0%, 82.9%, 54.1%)
CIE-LABlab(45.63, -23.46, 45.94)
CIE-LCHlch(45.63, 51.58, 117.05°)
OKLaboklab(52.33% -0.0686 0.1007)
OKLCHoklch(52.33% 0.122 124.3)
XYZxyz(10.8021, 14.9971, 2.9873)
Luminance0.1500 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7514 #2E1475
analogous
#755F14 #5B7514 #2B7514
triadic
#5B7514 #145B75 #75145B
tetradic
#5B7514 #14755F #2E1475 #75142B
square
#5B7514 #14755F #2E1475 #75142B
split-complementary
#5B7514 #142B75 #5F1475
monochromatic
#141A04 #32410B #5B7514 #84A91D #ABDA29

Accessibility & contrast

On white

5.25
#5B7514 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#5B7514 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7514
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7514#FFFFFF#000000##FFFFFF
##5B75141.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D00
Deuteranopia (green-blind)
#796C1E
Tritanopia (blue-blind)
#606F63
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b7514;
/* rgb */ color: rgb(91, 117, 20);
/* oklch */ color: oklch(52.3% 0.122 124.3);
Tailwind
colors: {
  custom: {
    50: '#8d9c5b',
    500: '#5b7514',
    950: '#000000',
  },
}
SCSS
$custom: #5b7514;
$custom-light: #8d9c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7514",
  "rgb": {
    "r": 91,
    "g": 117,
    "b": 20
  },
  "hsl": {
    "h": 76.082,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.52334,
    "c": 0.1218,
    "h": 124.3
  },
  "luminance": 0.14997
}

Semantic roles & 50–950 ramp

primary
#5B7514
secondary
#583AAB
accent
#3AEE6A
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7514

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

Preview Lab → · Contrast checker → · Palette generator →

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