#5A7216#5A7216

#5A7216 is a mid, moderate yellow-green. Relative luminance 0.143; OKLCH L 51.5% C 0.117 H 123.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5A7216
RGBrgb(90, 114, 22)
HSLhsl(76, 68%, 27%)
HSVhsv(76, 81%, 45%)
CMYKcmyk(21.1%, 0%, 80.7%, 55.3%)
CIE-LABlab(44.61, -22.27, 44.33)
CIE-LCHlch(44.61, 49.61, 116.68°)
OKLaboklab(51.5% -0.0652 0.0976)
OKLCHoklch(51.5% 0.117 123.7)
XYZxyz(10.3787, 14.2661, 2.9658)
Luminance0.1427 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7216 #2E1672
analogous
#725C16 #5A7216 #2C7216
triadic
#5A7216 #165A72 #72165A
tetradic
#5A7216 #16725C #2E1672 #72162C
square
#5A7216 #16725C #2E1672 #72162C
split-complementary
#5A7216 #162C72 #5C1672
monochromatic
#141A05 #323F0C #5A7216 #83A520 #AAD62C

Accessibility & contrast

On white

5.45
#5A7216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#5A7216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7216
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7216#FFFFFF#000000##FFFFFF
##5A72161.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796A00
Deuteranopia (green-blind)
#76691F
Tritanopia (blue-blind)
#5F6C61
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a7216;
/* rgb */ color: rgb(90, 114, 22);
/* oklch */ color: oklch(51.5% 0.117 123.7);
Tailwind
colors: {
  custom: {
    50: '#8c9a5c',
    500: '#5a7216',
    950: '#000000',
  },
}
SCSS
$custom: #5a7216;
$custom-light: #8c9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7216",
  "rgb": {
    "r": 90,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 75.652,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.51496,
    "c": 0.11738,
    "h": 123.7
  },
  "luminance": 0.14266
}

Semantic roles & 50–950 ramp

primary
#5A7216
secondary
#583CA8
accent
#3DEB6A
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7216

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

Preview Lab → · Contrast checker → · Palette generator →

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