#5A7916#5A7916

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

Color values

HEX#5A7916
RGBrgb(90, 121, 22)
HSLhsl(79, 69%, 28%)
HSVhsv(79, 82%, 47%)
CMYKcmyk(25.6%, 0%, 81.8%, 52.5%)
CIE-LABlab(46.85, -25.79, 46.39)
CIE-LCHlch(46.85, 53.08, 119.07°)
OKLaboklab(53.31% -0.0747 0.102)
OKLCHoklch(53.31% 0.126 126.2)
XYZxyz(11.1987, 15.9061, 3.2391)
Luminance0.1591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7916 #351679
analogous
#796616 #5A7916 #287916
triadic
#5A7916 #165A79 #79165A
tetradic
#5A7916 #167966 #351679 #791628
square
#5A7916 #167966 #351679 #791628
split-complementary
#5A7916 #162879 #661679
monochromatic
#131A05 #33450D #5A7916 #81AD1F #A4D930

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7916#FFFFFF#000000##FFFFFF
##5A79161.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)
#7C6F20
Tritanopia (blue-blind)
#5E7367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a7916;
/* rgb */ color: rgb(90, 121, 22);
/* oklch */ color: oklch(53.3% 0.126 126.2);
Tailwind
colors: {
  custom: {
    50: '#8ca05d',
    500: '#5a7916',
    950: '#000000',
  },
}
SCSS
$custom: #5a7916;
$custom-light: #8ca05d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7916",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 22
  },
  "hsl": {
    "h": 78.788,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5331,
    "c": 0.12644,
    "h": 126.2
  },
  "luminance": 0.15906
}

Semantic roles & 50–950 ramp

primary
#5A7916
secondary
#603DAE
accent
#3CEC73
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7916

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

Preview Lab → · Contrast checker → · Palette generator →

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