#5B7819#5B7819

#5B7819 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.1% C 0.123 H 125.6°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#5B7819
RGBrgb(91, 120, 25)
HSLhsl(78, 66%, 28%)
HSVhsv(78, 79%, 47%)
CMYKcmyk(24.2%, 0%, 79.2%, 52.9%)
CIE-LABlab(46.61, -24.71, 45.19)
CIE-LCHlch(46.61, 51.51, 118.67°)
OKLaboklab(53.14% -0.0716 0.1)
OKLCHoklch(53.14% 0.123 125.6)
XYZxyz(11.2064, 15.7271, 3.3647)
Luminance0.1573 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7819 #361978
analogous
#786519 #5B7819 #2B7819
triadic
#5B7819 #195B78 #78195B
tetradic
#5B7819 #197865 #361978 #78192B
square
#5B7819 #197865 #361978 #78192B
split-complementary
#5B7819 #192B78 #651978
monochromatic
#131905 #35450E #5B7819 #81AB24 #A5D536

Accessibility & contrast

On white

5.07
#5B7819 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5B7819 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7819
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7819#FFFFFF#000000##FFFFFF
##5B78191.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7003
Deuteranopia (green-blind)
#7B6E22
Tritanopia (blue-blind)
#5F7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b7819;
/* rgb */ color: rgb(91, 120, 25);
/* oklch */ color: oklch(53.1% 0.123 125.6);
Tailwind
colors: {
  custom: {
    50: '#8d9f5e',
    500: '#5b7819',
    950: '#000000',
  },
}
SCSS
$custom: #5b7819;
$custom-light: #8d9f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7819",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 25
  },
  "hsl": {
    "h": 78.316,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5314,
    "c": 0.12298,
    "h": 125.6
  },
  "luminance": 0.15727
}

Semantic roles & 50–950 ramp

primary
#5B7819
secondary
#6140AD
accent
#3FE873
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5B7819

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

Preview Lab → · Contrast checker → · Palette generator →

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