#5A7E18#5A7E18

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

Color values

HEX#5A7E18
RGBrgb(90, 126, 24)
HSLhsl(81, 68%, 29%)
HSVhsv(81, 81%, 49%)
CMYKcmyk(28.6%, 0%, 81%, 50.6%)
CIE-LABlab(48.46, -28.13, 47.23)
CIE-LCHlch(48.46, 54.97, 120.77°)
OKLaboklab(54.62% -0.0809 0.1041)
OKLCHoklch(54.62% 0.132 127.9)
XYZxyz(11.8422, 17.1610, 3.5525)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E18 #3C187E
analogous
#7E6F18 #5A7E18 #277E18
triadic
#5A7E18 #185A7E #7E185A
tetradic
#5A7E18 #187E6F #3C187E #7E1827
square
#5A7E18 #187E6F #3C187E #7E1827
split-complementary
#5A7E18 #18277E #6F187E
monochromatic
#121A05 #354B0E #5A7E18 #7FB122 #A0D937

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7E18#FFFFFF#000000##FFFFFF
##5A7E181.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)
#5E786B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7e18;
/* rgb */ color: rgb(90, 126, 24);
/* oklch */ color: oklch(54.6% 0.132 127.9);
Tailwind
colors: {
  custom: {
    50: '#8ca35e',
    500: '#5a7e18',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e18;
$custom-light: #8ca35e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e18",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 81.176,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54621,
    "c": 0.13187,
    "h": 127.9
  },
  "luminance": 0.17161
}

Semantic roles & 50–950 ramp

primary
#5A7E18
secondary
#683FB2
accent
#3DEB7A
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7E18

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

Preview Lab → · Contrast checker → · Palette generator →

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