#5A7917#5A7917

#5A7917 is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.3% C 0.126 H 126.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5A7917
RGBrgb(90, 121, 23)
HSLhsl(79, 68%, 28%)
HSVhsv(79, 81%, 47%)
CMYKcmyk(25.6%, 0%, 81%, 52.5%)
CIE-LABlab(46.86, -25.74, 46.07)
CIE-LCHlch(46.86, 52.78, 119.19°)
OKLaboklab(53.32% -0.0745 0.1015)
OKLCHoklch(53.32% 0.126 126.3)
XYZxyz(11.2085, 15.9101, 3.2909)
Luminance0.1591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7917 #361779
analogous
#796717 #5A7917 #297917
triadic
#5A7917 #175A79 #79175A
tetradic
#5A7917 #177967 #361779 #791729
square
#5A7917 #177967 #361779 #791729
split-complementary
#5A7917 #172979 #671779
monochromatic
#131A05 #34460D #5A7917 #80AC21 #A4D832

Accessibility & contrast

On white

5.02
#5A7917 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5A7917 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7917
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7917#FFFFFF#000000##FFFFFF
##5A79171.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#7C6F21
Tritanopia (blue-blind)
#5E7367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a7917;
/* rgb */ color: rgb(90, 121, 23);
/* oklch */ color: oklch(53.3% 0.126 126.3);
Tailwind
colors: {
  custom: {
    50: '#8ca05d',
    500: '#5a7917',
    950: '#000000',
  },
}
SCSS
$custom: #5a7917;
$custom-light: #8ca05d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7917",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 23
  },
  "hsl": {
    "h": 78.98,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.53315,
    "c": 0.12591,
    "h": 126.3
  },
  "luminance": 0.1591
}

Semantic roles & 50–950 ramp

primary
#5A7917
secondary
#613EAE
accent
#3DEB74
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7917

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

Preview Lab → · Contrast checker → · Palette generator →

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