#5A7E17#5A7E17

#5A7E17 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.6% C 0.132 H 127.8°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#5A7E17
RGBrgb(90, 126, 23)
HSLhsl(81, 69%, 29%)
HSVhsv(81, 82%, 49%)
CMYKcmyk(28.6%, 0%, 81.7%, 50.6%)
CIE-LABlab(48.46, -28.18, 47.55)
CIE-LCHlch(48.46, 55.27, 120.65°)
OKLaboklab(54.62% -0.0811 0.1046)
OKLCHoklch(54.62% 0.132 127.8)
XYZxyz(11.8320, 17.1570, 3.4987)
Luminance0.1716 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E17 #3B177E
analogous
#7E6F17 #5A7E17 #267E17
triadic
#5A7E17 #175A7E #7E175A
tetradic
#5A7E17 #177E6F #3B177E #7E1726
square
#5A7E17 #177E6F #3B177E #7E1726
split-complementary
#5A7E17 #17267E #6F177E
monochromatic
#121A05 #354A0E #5A7E17 #7FB220 #A1DA35

Accessibility & contrast

On white

4.74
#5A7E17 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#5A7E17 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7E17
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7E17#FFFFFF#000000##FFFFFF
##5A7E171.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#857500
Deuteranopia (green-blind)
#807222
Tritanopia (blue-blind)
#5E786B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7e17;
/* rgb */ color: rgb(90, 126, 23);
/* oklch */ color: oklch(54.6% 0.132 127.8);
Tailwind
colors: {
  custom: {
    50: '#8ca35e',
    500: '#5a7e17',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e17;
$custom-light: #8ca35e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e17",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 23
  },
  "hsl": {
    "h": 80.971,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54616,
    "c": 0.13239,
    "h": 127.8
  },
  "luminance": 0.17157
}

Semantic roles & 50–950 ramp

primary
#5A7E17
secondary
#673EB3
accent
#3CEC79
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7E17

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

Preview Lab → · Contrast checker → · Palette generator →

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