#5A7C19#5A7C19

#5A7C19 is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 54.1% C 0.129 H 127.3°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#5A7C19
RGBrgb(90, 124, 25)
HSLhsl(81, 66%, 29%)
HSVhsv(81, 80%, 49%)
CMYKcmyk(27.4%, 0%, 79.8%, 51.4%)
CIE-LABlab(47.83, -27.11, 46.31)
CIE-LCHlch(47.83, 53.66, 120.34°)
OKLaboklab(54.11% -0.0781 0.1023)
OKLCHoklch(54.11% 0.129 127.3)
XYZxyz(11.5996, 16.6589, 3.5239)
Luminance0.1666 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7C19 #3B197C
analogous
#7C6D19 #5A7C19 #297C19
triadic
#5A7C19 #195A7C #7C195A
tetradic
#5A7C19 #197C6D #3B197C #7C1929
square
#5A7C19 #197C6D #3B197C #7C1929
split-complementary
#5A7C19 #19297C #6D197C
monochromatic
#121905 #35490F #5A7C19 #7FAF23 #A1D738

Accessibility & contrast

On white

4.85
#5A7C19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#5A7C19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7C19
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7C19#FFFFFF#000000##FFFFFF
##5A7C191.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#7E7123
Tritanopia (blue-blind)
#5E766A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a7c19;
/* rgb */ color: rgb(90, 124, 25);
/* oklch */ color: oklch(54.1% 0.129 127.3);
Tailwind
colors: {
  custom: {
    50: '#8ca25f',
    500: '#5a7c19',
    950: '#000000',
  },
}
SCSS
$custom: #5a7c19;
$custom-light: #8ca25f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7c19",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 25
  },
  "hsl": {
    "h": 80.606,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54107,
    "c": 0.12872,
    "h": 127.3
  },
  "luminance": 0.16659
}

Semantic roles & 50–950 ramp

primary
#5A7C19
secondary
#6740B0
accent
#3EE979
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5A7C19

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

Preview Lab → · Contrast checker → · Palette generator →

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