#5A7F16#5A7F16

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

Color values

HEX#5A7F16
RGBrgb(90, 127, 22)
HSLhsl(81, 70%, 29%)
HSVhsv(81, 83%, 50%)
CMYKcmyk(29.1%, 0%, 82.7%, 50.2%)
CIE-LABlab(48.77, -28.70, 48.15)
CIE-LCHlch(48.77, 56.05, 120.80°)
OKLaboklab(54.87% -0.0826 0.1057)
OKLCHoklch(54.87% 0.134 128)
XYZxyz(11.9507, 17.4100, 3.4897)
Luminance0.1741 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7F16 #3B167F
analogous
#7F7016 #5A7F16 #267F16
triadic
#5A7F16 #165A7F #7F165A
tetradic
#5A7F16 #167F70 #3B167F #7F1626
square
#5A7F16 #167F70 #3B167F #7F1626
split-complementary
#5A7F16 #16267F #70167F
monochromatic
#121A05 #354B0D #5A7F16 #7FB31F #A1DC34

Accessibility & contrast

On white

4.69
#5A7F16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A7F16
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7F16#FFFFFF#000000##FFFFFF
##5A7F161.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.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: #5a7f16;
/* rgb */ color: rgb(90, 127, 22);
/* oklch */ color: oklch(54.9% 0.134 128.0);
Tailwind
colors: {
  custom: {
    50: '#8ca45e',
    500: '#5a7f16',
    950: '#000000',
  },
}
SCSS
$custom: #5a7f16;
$custom-light: #8ca45e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7f16",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 22
  },
  "hsl": {
    "h": 81.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.54871,
    "c": 0.13417,
    "h": 128
  },
  "luminance": 0.1741
}

Semantic roles & 50–950 ramp

primary
#5A7F16
secondary
#673DB4
accent
#3BED7A
background
#F8FAF5
surface
#F0F4E9
border
#CBCEC5
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7F16

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

Preview Lab → · Contrast checker → · Palette generator →

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