#5A8017#5A8017

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

Color values

HEX#5A8017
RGBrgb(90, 128, 23)
HSLhsl(82, 70%, 30%)
HSVhsv(82, 82%, 50%)
CMYKcmyk(29.7%, 0%, 82%, 49.8%)
CIE-LABlab(49.10, -29.13, 48.14)
CIE-LCHlch(49.10, 56.27, 121.18°)
OKLaboklab(55.14% -0.0837 0.1058)
OKLCHoklch(55.14% 0.135 128.3)
XYZxyz(12.0903, 17.6736, 3.5848)
Luminance0.1767 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8017 #3D1780
analogous
#807117 #5A8017 #268017
triadic
#5A8017 #175A80 #80175A
tetradic
#5A8017 #178071 #3D1780 #801726
square
#5A8017 #178071 #3D1780 #801726
split-complementary
#5A8017 #172680 #711780
monochromatic
#121A05 #364C0E #5A8017 #7EB420 #9FDB36

Accessibility & contrast

On white

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

On black

4.53
#5A8017 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A8017#FFFFFF#000000##FFFFFF
##5A80171.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a8017;
/* rgb */ color: rgb(90, 128, 23);
/* oklch */ color: oklch(55.1% 0.135 128.3);
Tailwind
colors: {
  custom: {
    50: '#8da55e',
    500: '#5a8017',
    950: '#000000',
  },
}
SCSS
$custom: #5a8017;
$custom-light: #8da55e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8017",
  "rgb": {
    "r": 90,
    "g": 128,
    "b": 23
  },
  "hsl": {
    "h": 81.714,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.55137,
    "c": 0.13495,
    "h": 128.3
  },
  "luminance": 0.17674
}

Semantic roles & 50–950 ramp

primary
#5A8017
secondary
#693EB4
accent
#3BEC7B
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A8017

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

Preview Lab → · Contrast checker → · Palette generator →

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