#5B7F15#5B7F15

#5B7F15 is a mid, vivid yellow-green. Relative luminance 0.175; OKLCH L 54.9% C 0.134 H 127.6°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5B7F15
RGBrgb(91, 127, 21)
HSLhsl(80, 72%, 29%)
HSVhsv(80, 83%, 50%)
CMYKcmyk(28.3%, 0%, 83.5%, 50.2%)
CIE-LABlab(48.83, -28.34, 48.52)
CIE-LCHlch(48.83, 56.19, 120.28°)
OKLaboklab(54.93% -0.0818 0.1063)
OKLCHoklch(54.93% 0.134 127.6)
XYZxyz(12.0391, 17.4568, 3.4445)
Luminance0.1746 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7F15 #39157F
analogous
#7F6E15 #5B7F15 #267F15
triadic
#5B7F15 #155B7F #7F155B
tetradic
#5B7F15 #157F6E #39157F #7F1526
square
#5B7F15 #157F6E #39157F #7F1526
split-complementary
#5B7F15 #15267F #6E157F
monochromatic
#131A04 #354A0C #5B7F15 #81B41E #A3DD31

Accessibility & contrast

On white

4.68
#5B7F15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#5B7F15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7F15
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7F15#FFFFFF#000000##FFFFFF
##5B7F151.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#817321
Tritanopia (blue-blind)
#5F796C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5b7f15;
/* rgb */ color: rgb(91, 127, 21);
/* oklch */ color: oklch(54.9% 0.134 127.6);
Tailwind
colors: {
  custom: {
    50: '#8da45d',
    500: '#5b7f15',
    950: '#000000',
  },
}
SCSS
$custom: #5b7f15;
$custom-light: #8da45d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7f15",
  "rgb": {
    "r": 91,
    "g": 127,
    "b": 21
  },
  "hsl": {
    "h": 80.377,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54933,
    "c": 0.13411,
    "h": 127.6
  },
  "luminance": 0.17457
}

Semantic roles & 50–950 ramp

primary
#5B7F15
secondary
#653CB4
accent
#39EE77
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B7F15

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

Preview Lab → · Contrast checker → · Palette generator →

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