#5B7D15#5B7D15

#5B7D15 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.4% C 0.132 H 127.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5B7D15
RGBrgb(91, 125, 21)
HSLhsl(80, 71%, 29%)
HSVhsv(80, 83%, 49%)
CMYKcmyk(27.2%, 0%, 83.2%, 51%)
CIE-LABlab(48.19, -27.37, 47.95)
CIE-LCHlch(48.19, 55.21, 119.72°)
OKLaboklab(54.41% -0.0792 0.1051)
OKLCHoklch(54.41% 0.132 127)
XYZxyz(11.7834, 16.9453, 3.3593)
Luminance0.1695 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7D15 #37157D
analogous
#7D6B15 #5B7D15 #277D15
triadic
#5B7D15 #155B7D #7D155B
tetradic
#5B7D15 #157D6B #37157D #7D1527
square
#5B7D15 #157D6B #37157D #7D1527
split-complementary
#5B7D15 #15277D #6B157D
monochromatic
#131A04 #35490C #5B7D15 #81B11E #A4DC30

Accessibility & contrast

On white

4.78
#5B7D15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5B7D15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7D15
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7D15#FFFFFF#000000##FFFFFF
##5B7D151.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7F7221
Tritanopia (blue-blind)
#5F776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b7d15;
/* rgb */ color: rgb(91, 125, 21);
/* oklch */ color: oklch(54.4% 0.132 127.0);
Tailwind
colors: {
  custom: {
    50: '#8da25d',
    500: '#5b7d15',
    950: '#000000',
  },
}
SCSS
$custom: #5b7d15;
$custom-light: #8da25d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7d15",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 21
  },
  "hsl": {
    "h": 79.615,
    "s": 71.233,
    "l": 28.627
  },
  "oklch": {
    "l": 0.54413,
    "c": 0.13156,
    "h": 127
  },
  "luminance": 0.16946
}

Semantic roles & 50–950 ramp

primary
#5B7D15
secondary
#623CB2
accent
#3AEE75
background
#F8FAF5
surface
#F0F3E9
border
#CBCDC5
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B7D15

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

Preview Lab → · Contrast checker → · Palette generator →

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