#5A7716#5A7716

#5A7716 is a mid, vivid yellow-green. Relative luminance 0.154; OKLCH L 52.8% C 0.124 H 125.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5A7716
RGBrgb(90, 119, 22)
HSLhsl(78, 69%, 28%)
HSVhsv(78, 82%, 47%)
CMYKcmyk(24.4%, 0%, 81.5%, 53.3%)
CIE-LABlab(46.21, -24.80, 45.81)
CIE-LCHlch(46.21, 52.09, 118.43°)
OKLaboklab(52.79% -0.072 0.1008)
OKLCHoklch(52.79% 0.124 125.6)
XYZxyz(10.9582, 15.4251, 3.1589)
Luminance0.1542 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7716 #331677
analogous
#776316 #5A7716 #2A7716
triadic
#5A7716 #165A77 #77165A
tetradic
#5A7716 #167763 #331677 #77162A
square
#5A7716 #167763 #331677 #77162A
split-complementary
#5A7716 #162A77 #631677
monochromatic
#141A05 #33430C #5A7716 #81AB20 #A6D92F

Accessibility & contrast

On white

5.14
#5A7716 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5A7716 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7716
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7716#FFFFFF#000000##FFFFFF
##5A77161.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#7A6D20
Tritanopia (blue-blind)
#5E7165
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a7716;
/* rgb */ color: rgb(90, 119, 22);
/* oklch */ color: oklch(52.8% 0.124 125.6);
Tailwind
colors: {
  custom: {
    50: '#8c9e5d',
    500: '#5a7716',
    950: '#000000',
  },
}
SCSS
$custom: #5a7716;
$custom-light: #8c9e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7716",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 22
  },
  "hsl": {
    "h": 77.938,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.5279,
    "c": 0.12386,
    "h": 125.6
  },
  "luminance": 0.15425
}

Semantic roles & 50–950 ramp

primary
#5A7716
secondary
#5E3CAC
accent
#3CEC71
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E04
muted
#7D7E79

Preview Lab

Preview with #5A7716

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

Preview Lab → · Contrast checker → · Palette generator →

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