#5A7E19#5A7E19

#5A7E19 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.6% C 0.131 H 127.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5A7E19
RGBrgb(90, 126, 25)
HSLhsl(81, 67%, 30%)
HSVhsv(81, 80%, 49%)
CMYKcmyk(28.6%, 0%, 80.2%, 50.6%)
CIE-LABlab(48.47, -28.07, 46.91)
CIE-LCHlch(48.47, 54.67, 120.90°)
OKLaboklab(54.63% -0.0807 0.1036)
OKLCHoklch(54.63% 0.131 127.9)
XYZxyz(11.8528, 17.1653, 3.6083)
Luminance0.1717 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E19 #3D197E
analogous
#7E7019 #5A7E19 #287E19
triadic
#5A7E19 #195A7E #7E195A
tetradic
#5A7E19 #197E70 #3D197E #7E1928
square
#5A7E19 #197E70 #3D197E #7E1928
split-complementary
#5A7E19 #19287E #70197E
monochromatic
#121A05 #364B0F #5A7E19 #7EB123 #9FD83A

Accessibility & contrast

On white

4.74
#5A7E19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5A7E19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7E19
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7E19#FFFFFF#000000##FFFFFF
##5A7E191.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#807223
Tritanopia (blue-blind)
#5D786B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7e19;
/* rgb */ color: rgb(90, 126, 25);
/* oklch */ color: oklch(54.6% 0.131 127.9);
Tailwind
colors: {
  custom: {
    50: '#8ca35f',
    500: '#5a7e19',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e19;
$custom-light: #8ca35f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e19",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 25
  },
  "hsl": {
    "h": 81.386,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.54627,
    "c": 0.13133,
    "h": 127.9
  },
  "luminance": 0.17166
}

Semantic roles & 50–950 ramp

primary
#5A7E19
secondary
#6941B2
accent
#3EEA7B
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7E19

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

Preview Lab → · Contrast checker → · Palette generator →

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