#5A7416#5A7416

#5A7416 is a mid, moderate yellow-green. Relative luminance 0.147; OKLCH L 52.0% C 0.120 H 124.5°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5A7416
RGBrgb(90, 116, 22)
HSLhsl(77, 68%, 27%)
HSVhsv(77, 81%, 45%)
CMYKcmyk(22.4%, 0%, 81%, 54.5%)
CIE-LABlab(45.25, -23.29, 44.92)
CIE-LCHlch(45.25, 50.60, 117.41°)
OKLaboklab(52.01% -0.0679 0.0989)
OKLCHoklch(52.01% 0.12 124.5)
XYZxyz(10.6068, 14.7223, 3.0418)
Luminance0.1472 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7416 #301674
analogous
#745F16 #5A7416 #2B7416
triadic
#5A7416 #165A74 #74165A
tetradic
#5A7416 #16745F #301674 #74162B
square
#5A7416 #16745F #301674 #74162B
split-complementary
#5A7416 #162B74 #5F1674
monochromatic
#141A05 #32410C #5A7416 #82A720 #A8D72D

Accessibility & contrast

On white

5.32
#5A7416 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#5A7416 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7416
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7416#FFFFFF#000000##FFFFFF
##5A74161.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#776B1F
Tritanopia (blue-blind)
#5F6E63
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a7416;
/* rgb */ color: rgb(90, 116, 22);
/* oklch */ color: oklch(52.0% 0.120 124.5);
Tailwind
colors: {
  custom: {
    50: '#8c9c5c',
    500: '#5a7416',
    950: '#000000',
  },
}
SCSS
$custom: #5a7416;
$custom-light: #8c9c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7416",
  "rgb": {
    "r": 90,
    "g": 116,
    "b": 22
  },
  "hsl": {
    "h": 76.596,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.52013,
    "c": 0.11997,
    "h": 124.5
  },
  "luminance": 0.14722
}

Semantic roles & 50–950 ramp

primary
#5A7416
secondary
#5A3CAA
accent
#3DEB6D
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7416

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

Preview Lab → · Contrast checker → · Palette generator →

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