#5A7D18#5A7D18

#5A7D18 is a mid, vivid yellow-green. Relative luminance 0.169; OKLCH L 54.4% C 0.131 H 127.6°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5A7D18
RGBrgb(90, 125, 24)
HSLhsl(81, 68%, 29%)
HSVhsv(81, 81%, 49%)
CMYKcmyk(28%, 0%, 80.8%, 51%)
CIE-LABlab(48.14, -27.64, 46.94)
CIE-LCHlch(48.14, 54.47, 120.50°)
OKLaboklab(54.36% -0.0796 0.1035)
OKLCHoklch(54.36% 0.131 127.6)
XYZxyz(11.7150, 16.9066, 3.5101)
Luminance0.1691 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7D18 #3B187D
analogous
#7D6E18 #5A7D18 #287D18
triadic
#5A7D18 #185A7D #7D185A
tetradic
#5A7D18 #187D6E #3B187D #7D1828
square
#5A7D18 #187D6E #3B187D #7D1828
split-complementary
#5A7D18 #18287D #6E187D
monochromatic
#121A05 #354A0E #5A7D18 #7FB022 #A1D937

Accessibility & contrast

On white

4.79
#5A7D18 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#5A7D18 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7D18
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7D18#FFFFFF#000000##FFFFFF
##5A7D181.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#7F7223
Tritanopia (blue-blind)
#5E776A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a7d18;
/* rgb */ color: rgb(90, 125, 24);
/* oklch */ color: oklch(54.4% 0.131 127.6);
Tailwind
colors: {
  custom: {
    50: '#8ca35e',
    500: '#5a7d18',
    950: '#000000',
  },
}
SCSS
$custom: #5a7d18;
$custom-light: #8ca35e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7d18",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 80.792,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54361,
    "c": 0.13057,
    "h": 127.6
  },
  "luminance": 0.16907
}

Semantic roles & 50–950 ramp

primary
#5A7D18
secondary
#673FB2
accent
#3DEB79
background
#F8FAF5
surface
#F0F3EA
border
#CBCDC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7D18

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

Preview Lab → · Contrast checker → · Palette generator →

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