#5A7C18#5A7C18

#5A7C18 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#5A7C18
RGBrgb(90, 124, 24)
HSLhsl(80, 68%, 29%)
HSVhsv(80, 81%, 49%)
CMYKcmyk(27.4%, 0%, 80.6%, 51.4%)
CIE-LABlab(47.82, -27.16, 46.64)
CIE-LCHlch(47.82, 53.97, 120.21°)
OKLaboklab(54.1% -0.0783 0.1029)
OKLCHoklch(54.1% 0.129 127.3)
XYZxyz(11.5890, 16.6547, 3.4681)
Luminance0.1666 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7C18 #3A187C
analogous
#7C6C18 #5A7C18 #287C18
triadic
#5A7C18 #185A7C #7C185A
tetradic
#5A7C18 #187C6C #3A187C #7C1828
square
#5A7C18 #187C6C #3A187C #7C1828
split-complementary
#5A7C18 #18287C #6C187C
monochromatic
#131A05 #35490E #5A7C18 #7FAF22 #A1D836

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7C18#FFFFFF#000000##FFFFFF
##5A7C181.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)
#7E7122
Tritanopia (blue-blind)
#5E7669
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a7c18;
/* rgb */ color: rgb(90, 124, 24);
/* oklch */ color: oklch(54.1% 0.129 127.3);
Tailwind
colors: {
  custom: {
    50: '#8ca25e',
    500: '#5a7c18',
    950: '#000000',
  },
}
SCSS
$custom: #5a7c18;
$custom-light: #8ca25e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7c18",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 80.4,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.54101,
    "c": 0.12927,
    "h": 127.3
  },
  "luminance": 0.16655
}

Semantic roles & 50–950 ramp

primary
#5A7C18
secondary
#663FB1
accent
#3DEA78
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5A7C18

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

Preview Lab → · Contrast checker → · Palette generator →

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