#5A8019#5A8019

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

Color values

HEX#5A8019
RGBrgb(90, 128, 25)
HSLhsl(82, 67%, 30%)
HSVhsv(82, 80%, 50%)
CMYKcmyk(29.7%, 0%, 80.5%, 49.8%)
CIE-LABlab(49.11, -29.03, 47.51)
CIE-LCHlch(49.11, 55.68, 121.43°)
OKLaboklab(55.15% -0.0833 0.1049)
OKLCHoklch(55.15% 0.134 128.5)
XYZxyz(12.1111, 17.6819, 3.6944)
Luminance0.1768 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8019 #3F1980
analogous
#807219 #5A8019 #278019
triadic
#5A8019 #195A80 #80195A
tetradic
#5A8019 #198072 #3F1980 #801927
square
#5A8019 #198072 #3F1980 #801927
split-complementary
#5A8019 #192780 #721980
monochromatic
#121A05 #364D0F #5A8019 #7EB323 #9ED93B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8019#FFFFFF#000000##FFFFFF
##5A80191.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)
#817424
Tritanopia (blue-blind)
#5D7A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a8019;
/* rgb */ color: rgb(90, 128, 25);
/* oklch */ color: oklch(55.1% 0.134 128.5);
Tailwind
colors: {
  custom: {
    50: '#8ca55f',
    500: '#5a8019',
    950: '#000000',
  },
}
SCSS
$custom: #5a8019;
$custom-light: #8ca55f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8019",
  "rgb": {
    "r": 90,
    "g": 128,
    "b": 25
  },
  "hsl": {
    "h": 82.136,
    "s": 67.32,
    "l": 30
  },
  "oklch": {
    "l": 0.55148,
    "c": 0.13393,
    "h": 128.5
  },
  "luminance": 0.17682
}

Semantic roles & 50–950 ramp

primary
#5A8019
secondary
#6B41B4
accent
#3EEA7D
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A8019

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

Preview Lab → · Contrast checker → · Palette generator →

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