#5B7D19#5B7D19

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

Color values

HEX#5B7D19
RGBrgb(91, 125, 25)
HSLhsl(80, 67%, 29%)
HSVhsv(80, 80%, 49%)
CMYKcmyk(27.2%, 0%, 80%, 51%)
CIE-LABlab(48.21, -27.18, 46.69)
CIE-LCHlch(48.21, 54.03, 120.20°)
OKLaboklab(54.44% -0.0783 0.1031)
OKLCHoklch(54.44% 0.13 127.2)
XYZxyz(11.8235, 16.9613, 3.5705)
Luminance0.1696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7D19 #3B197D
analogous
#7D6D19 #5B7D19 #297D19
triadic
#5B7D19 #195B7D #7D195B
tetradic
#5B7D19 #197D6D #3B197D #7D1929
square
#5B7D19 #197D6D #3B197D #7D1929
split-complementary
#5B7D19 #19297D #6D197D
monochromatic
#131A05 #364A0F #5B7D19 #80B023 #A2D739

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B7D19#FFFFFF#000000##FFFFFF
##5B7D191.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)
#7F7223
Tritanopia (blue-blind)
#5F776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b7d19;
/* rgb */ color: rgb(91, 125, 25);
/* oklch */ color: oklch(54.4% 0.130 127.2);
Tailwind
colors: {
  custom: {
    50: '#8da25f',
    500: '#5b7d19',
    950: '#000000',
  },
}
SCSS
$custom: #5b7d19;
$custom-light: #8da25f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7d19",
  "rgb": {
    "r": 91,
    "g": 125,
    "b": 25
  },
  "hsl": {
    "h": 80.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54436,
    "c": 0.1295,
    "h": 127.2
  },
  "luminance": 0.16962
}

Semantic roles & 50–950 ramp

primary
#5B7D19
secondary
#6740B1
accent
#3EEA78
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0D0F05
muted
#7D7F79

Preview Lab

Preview with #5B7D19

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

Preview Lab → · Contrast checker → · Palette generator →

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