#5B7415#5B7415

#5B7415 is a mid, vivid yellow-green. Relative luminance 0.148; OKLCH L 52.1% C 0.120 H 123.9°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5B7415
RGBrgb(91, 116, 21)
HSLhsl(76, 69%, 27%)
HSVhsv(76, 82%, 45%)
CMYKcmyk(21.6%, 0%, 81.9%, 54.5%)
CIE-LABlab(45.32, -22.90, 45.33)
CIE-LCHlch(45.32, 50.79, 116.80°)
OKLaboklab(52.08% -0.067 0.0996)
OKLCHoklch(52.08% 0.12 123.9)
XYZxyz(10.6953, 14.7690, 2.9966)
Luminance0.1477 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7415 #2E1574
analogous
#745E15 #5B7415 #2C7415
triadic
#5B7415 #155B74 #74155B
tetradic
#5B7415 #15745E #2E1574 #74152C
square
#5B7415 #15745E #2E1574 #74152C
split-complementary
#5B7415 #152C74 #5E1574
monochromatic
#141A05 #32400C #5B7415 #84A81E #ABD92B

Accessibility & contrast

On white

5.31
#5B7415 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#5B7415 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7415
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7415#FFFFFF#000000##FFFFFF
##5B74151.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#786B1F
Tritanopia (blue-blind)
#606E63
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b7415;
/* rgb */ color: rgb(91, 116, 21);
/* oklch */ color: oklch(52.1% 0.120 123.9);
Tailwind
colors: {
  custom: {
    50: '#8d9c5c',
    500: '#5b7415',
    950: '#000000',
  },
}
SCSS
$custom: #5b7415;
$custom-light: #8d9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7415",
  "rgb": {
    "r": 91,
    "g": 116,
    "b": 21
  },
  "hsl": {
    "h": 75.789,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.52082,
    "c": 0.12,
    "h": 123.9
  },
  "luminance": 0.14769
}

Semantic roles & 50–950 ramp

primary
#5B7415
secondary
#583BAA
accent
#3CEC6A
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5B7415

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

Preview Lab → · Contrast checker → · Palette generator →

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