#5A7919#5A7919

#5A7919 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.3% C 0.125 H 126.4°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5A7919
RGBrgb(90, 121, 25)
HSLhsl(79, 66%, 29%)
HSVhsv(79, 79%, 47%)
CMYKcmyk(25.6%, 0%, 79.3%, 52.5%)
CIE-LABlab(46.87, -25.64, 45.41)
CIE-LCHlch(46.87, 52.15, 119.45°)
OKLaboklab(53.33% -0.0741 0.1004)
OKLCHoklch(53.33% 0.125 126.4)
XYZxyz(11.2293, 15.9184, 3.4005)
Luminance0.1592 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7919 #381979
analogous
#796819 #5A7919 #2A7919
triadic
#5A7919 #195A79 #79195A
tetradic
#5A7919 #197968 #381979 #79192A
square
#5A7919 #197968 #381979 #79192A
split-complementary
#5A7919 #192A79 #681979
monochromatic
#131905 #34460F #5A7919 #80AC23 #A2D637

Accessibility & contrast

On white

5.02
#5A7919 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5A7919 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7919
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7919#FFFFFF#000000##FFFFFF
##5A79191.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807002
Deuteranopia (green-blind)
#7C6F23
Tritanopia (blue-blind)
#5E7367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a7919;
/* rgb */ color: rgb(90, 121, 25);
/* oklch */ color: oklch(53.3% 0.125 126.4);
Tailwind
colors: {
  custom: {
    50: '#8ca05e',
    500: '#5a7919',
    950: '#000000',
  },
}
SCSS
$custom: #5a7919;
$custom-light: #8ca05e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7919",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 25
  },
  "hsl": {
    "h": 79.375,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.53328,
    "c": 0.1248,
    "h": 126.4
  },
  "luminance": 0.15919
}

Semantic roles & 50–950 ramp

primary
#5A7919
secondary
#6440AE
accent
#3FE976
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7919

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

Preview Lab → · Contrast checker → · Palette generator →

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