#5A7016#5A7016

#5A7016 is a mid, moderate yellow-green. Relative luminance 0.138; OKLCH L 51.0% C 0.115 H 122.9°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5A7016
RGBrgb(90, 112, 22)
HSLhsl(75, 67%, 26%)
HSVhsv(75, 80%, 44%)
CMYKcmyk(19.6%, 0%, 80.4%, 56.1%)
CIE-LABlab(43.97, -21.25, 43.73)
CIE-LCHlch(43.97, 48.62, 115.91°)
OKLaboklab(50.98% -0.0623 0.0964)
OKLCHoklch(50.98% 0.115 122.9)
XYZxyz(10.1556, 13.8199, 2.8914)
Luminance0.1382 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7016 #2C1670
analogous
#705916 #5A7016 #2D7016
triadic
#5A7016 #165A70 #70165A
tetradic
#5A7016 #167059 #2C1670 #70162D
square
#5A7016 #167059 #2C1670 #70162D
split-complementary
#5A7016 #162D70 #591670
monochromatic
#151A05 #313D0C #5A7016 #83A320 #ACD52B

Accessibility & contrast

On white

5.58
#5A7016 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#5A7016 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7016
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7016#FFFFFF#000000##FFFFFF
##5A70161.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776901
Deuteranopia (green-blind)
#74681F
Tritanopia (blue-blind)
#5F6A5F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a7016;
/* rgb */ color: rgb(90, 112, 22);
/* oklch */ color: oklch(51.0% 0.115 122.9);
Tailwind
colors: {
  custom: {
    50: '#8c995c',
    500: '#5a7016',
    950: '#000000',
  },
}
SCSS
$custom: #5a7016;
$custom-light: #8c995c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7016",
  "rgb": {
    "r": 90,
    "g": 112,
    "b": 22
  },
  "hsl": {
    "h": 74.667,
    "s": 67.164,
    "l": 26.275
  },
  "oklch": {
    "l": 0.50979,
    "c": 0.11479,
    "h": 122.9
  },
  "luminance": 0.1382
}

Semantic roles & 50–950 ramp

primary
#5A7016
secondary
#563CA6
accent
#3EEA68
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0D04
muted
#7D7E79

Preview Lab

Preview with #5A7016

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

Preview Lab → · Contrast checker → · Palette generator →

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