#5A7E16#5A7E16

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

Color values

HEX#5A7E16
RGBrgb(90, 126, 22)
HSLhsl(81, 70%, 29%)
HSVhsv(81, 83%, 49%)
CMYKcmyk(28.6%, 0%, 82.5%, 50.6%)
CIE-LABlab(48.45, -28.22, 47.86)
CIE-LCHlch(48.45, 55.56, 120.53°)
OKLaboklab(54.61% -0.0813 0.1051)
OKLCHoklch(54.61% 0.133 127.7)
XYZxyz(11.8222, 17.1530, 3.4469)
Luminance0.1715 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E16 #3A167E
analogous
#7E6E16 #5A7E16 #267E16
triadic
#5A7E16 #165A7E #7E165A
tetradic
#5A7E16 #167E6E #3A167E #7E1626
square
#5A7E16 #167E6E #3A167E #7E1626
split-complementary
#5A7E16 #16267E #6E167E
monochromatic
#131A05 #354A0D #5A7E16 #7FB21F #A1DB33

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7E16#FFFFFF#000000##FFFFFF
##5A7E161.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)
#807221
Tritanopia (blue-blind)
#5E786B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7e16;
/* rgb */ color: rgb(90, 126, 22);
/* oklch */ color: oklch(54.6% 0.133 127.7);
Tailwind
colors: {
  custom: {
    50: '#8ca35e',
    500: '#5a7e16',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e16;
$custom-light: #8ca35e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e16",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 22
  },
  "hsl": {
    "h": 80.769,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.5461,
    "c": 0.13288,
    "h": 127.7
  },
  "luminance": 0.17153
}

Semantic roles & 50–950 ramp

primary
#5A7E16
secondary
#663DB3
accent
#3BED78
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7E16

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

Preview Lab → · Contrast checker → · Palette generator →

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