#5A8018#5A8018

#5A8018 is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.1% C 0.134 H 128.4°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5A8018
RGBrgb(90, 128, 24)
HSLhsl(82, 68%, 30%)
HSVhsv(82, 81%, 50%)
CMYKcmyk(29.7%, 0%, 81.3%, 49.8%)
CIE-LABlab(49.10, -29.08, 47.83)
CIE-LCHlch(49.10, 55.98, 121.30°)
OKLaboklab(55.14% -0.0835 0.1054)
OKLCHoklch(55.14% 0.134 128.4)
XYZxyz(12.1005, 17.6776, 3.6386)
Luminance0.1768 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8018 #3E1880
analogous
#807218 #5A8018 #268018
triadic
#5A8018 #185A80 #80185A
tetradic
#5A8018 #188072 #3E1880 #801826
square
#5A8018 #188072 #3E1880 #801826
split-complementary
#5A8018 #182680 #721880
monochromatic
#121A05 #364C0E #5A8018 #7EB422 #9FDA39

Accessibility & contrast

On white

4.63
#5A8018 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#5A8018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A8018
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8018#FFFFFF#000000##FFFFFF
##5A80181.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#817423
Tritanopia (blue-blind)
#5D7A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a8018;
/* rgb */ color: rgb(90, 128, 24);
/* oklch */ color: oklch(55.1% 0.134 128.4);
Tailwind
colors: {
  custom: {
    50: '#8ca55f',
    500: '#5a8018',
    950: '#000000',
  },
}
SCSS
$custom: #5a8018;
$custom-light: #8ca55f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8018",
  "rgb": {
    "r": 90,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 81.923,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.55142,
    "c": 0.13445,
    "h": 128.4
  },
  "luminance": 0.17678
}

Semantic roles & 50–950 ramp

primary
#5A8018
secondary
#6A40B4
accent
#3DEB7C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A8018

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

Preview Lab → · Contrast checker → · Palette generator →

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