#5A8618#5A8618

#5A8618 is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.7% C 0.142 H 129.9°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5A8618
RGBrgb(90, 134, 24)
HSLhsl(84, 70%, 31%)
HSVhsv(84, 82%, 53%)
CMYKcmyk(32.8%, 0%, 82.1%, 47.5%)
CIE-LABlab(51.02, -31.90, 49.59)
CIE-LCHlch(51.02, 58.97, 122.75°)
OKLaboklab(56.71% -0.0911 0.1091)
OKLCHoklch(56.71% 0.142 129.9)
XYZxyz(12.9064, 19.2894, 3.9072)
Luminance0.1929 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8618 #441886
analogous
#867B18 #5A8618 #238618
triadic
#5A8618 #185A86 #86185A
tetradic
#5A8618 #18867B #441886 #861823
square
#5A8618 #18867B #441886 #861823
split-complementary
#5A8618 #182386 #7B1886
monochromatic
#141E05 #37520F #5A8618 #7DBA21 #9CDC3C

Accessibility & contrast

On white

4.32
#5A8618 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5A8618 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8618
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8618#FFFFFF#000000##000000
##5A86181.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#877824
Tritanopia (blue-blind)
#5D8072
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a8618;
/* rgb */ color: rgb(90, 134, 24);
/* oklch */ color: oklch(56.7% 0.142 129.9);
Tailwind
colors: {
  custom: {
    50: '#8da960',
    500: '#5a8618',
    950: '#000000',
  },
}
SCSS
$custom: #5a8618;
$custom-light: #8da960;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8618",
  "rgb": {
    "r": 90,
    "g": 134,
    "b": 24
  },
  "hsl": {
    "h": 84,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.56707,
    "c": 0.14214,
    "h": 129.9
  },
  "luminance": 0.1929
}

Semantic roles & 50–950 ramp

primary
#5A8618
secondary
#7140BA
accent
#3BEC82
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0D1005
muted
#7D7F79

Preview Lab

Preview with #5A8618

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

Preview Lab → · Contrast checker → · Palette generator →

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