#5A7F17#5A7F17

#5A7F17 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.9% C 0.134 H 128.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5A7F17
RGBrgb(90, 127, 23)
HSLhsl(81, 69%, 29%)
HSVhsv(81, 82%, 50%)
CMYKcmyk(29.1%, 0%, 81.9%, 50.2%)
CIE-LABlab(48.78, -28.66, 47.84)
CIE-LCHlch(48.78, 55.77, 120.92°)
OKLaboklab(54.88% -0.0824 0.1052)
OKLCHoklch(54.88% 0.134 128.1)
XYZxyz(11.9605, 17.4140, 3.5415)
Luminance0.1741 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7F17 #3C177F
analogous
#7F7017 #5A7F17 #267F17
triadic
#5A7F17 #175A7F #7F175A
tetradic
#5A7F17 #177F70 #3C177F #7F1726
square
#5A7F17 #177F70 #3C177F #7F1726
split-complementary
#5A7F17 #17267F #70177F
monochromatic
#121A05 #354B0E #5A7F17 #7FB320 #A0DB36

Accessibility & contrast

On white

4.68
#5A7F17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#5A7F17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7F17
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7F17#FFFFFF#000000##FFFFFF
##5A7F171.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867500
Deuteranopia (green-blind)
#817322
Tritanopia (blue-blind)
#5D796C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5a7f17;
/* rgb */ color: rgb(90, 127, 23);
/* oklch */ color: oklch(54.9% 0.134 128.1);
Tailwind
colors: {
  custom: {
    50: '#8ca45e',
    500: '#5a7f17',
    950: '#000000',
  },
}
SCSS
$custom: #5a7f17;
$custom-light: #8ca45e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7f17",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 23
  },
  "hsl": {
    "h": 81.346,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.54876,
    "c": 0.13368,
    "h": 128.1
  },
  "luminance": 0.17414
}

Semantic roles & 50–950 ramp

primary
#5A7F17
secondary
#683EB4
accent
#3CEC7A
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7F17

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

Preview Lab → · Contrast checker → · Palette generator →

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