#5B7B15#5B7B15

#5B7B15 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.9% C 0.129 H 126.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5B7B15
RGBrgb(91, 123, 21)
HSLhsl(79, 71%, 28%)
HSVhsv(79, 83%, 48%)
CMYKcmyk(26%, 0%, 82.9%, 51.8%)
CIE-LABlab(47.55, -26.40, 47.37)
CIE-LCHlch(47.55, 54.23, 119.13°)
OKLaboklab(53.89% -0.0765 0.1039)
OKLCHoklch(53.89% 0.129 126.4)
XYZxyz(11.5328, 16.4440, 3.2757)
Luminance0.1644 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7B15 #35157B
analogous
#7B6815 #5B7B15 #287B15
triadic
#5B7B15 #155B7B #7B155B
tetradic
#5B7B15 #157B68 #35157B #7B1528
square
#5B7B15 #157B68 #35157B #7B1528
split-complementary
#5B7B15 #15287B #68157B
monochromatic
#131A04 #34470C #5B7B15 #82AF1E #A5DB2F

Accessibility & contrast

On white

4.90
#5B7B15 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#5B7B15 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7B15
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7B15#FFFFFF#000000##FFFFFF
##5B7B151.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7E7020
Tritanopia (blue-blind)
#5F7568
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5b7b15;
/* rgb */ color: rgb(91, 123, 21);
/* oklch */ color: oklch(53.9% 0.129 126.4);
Tailwind
colors: {
  custom: {
    50: '#8da15d',
    500: '#5b7b15',
    950: '#000000',
  },
}
SCSS
$custom: #5b7b15;
$custom-light: #8da15d;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7b15",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 21
  },
  "hsl": {
    "h": 78.824,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53894,
    "c": 0.12899,
    "h": 126.4
  },
  "luminance": 0.16444
}

Semantic roles & 50–950 ramp

primary
#5B7B15
secondary
#603BB0
accent
#3AEE72
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0D0F05
muted
#7D7E79

Preview Lab

Preview with #5B7B15

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

Preview Lab → · Contrast checker → · Palette generator →

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