#5A7816#5A7816

#5A7816 is a mid, vivid yellow-green. Relative luminance 0.157; OKLCH L 53.0% C 0.125 H 125.9°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5A7816
RGBrgb(90, 120, 22)
HSLhsl(78, 69%, 28%)
HSVhsv(78, 82%, 47%)
CMYKcmyk(25%, 0%, 81.7%, 52.9%)
CIE-LABlab(46.53, -25.30, 46.10)
CIE-LCHlch(46.53, 52.58, 118.75°)
OKLaboklab(53.05% -0.0734 0.1014)
OKLCHoklch(53.05% 0.125 125.9)
XYZxyz(11.0778, 15.6644, 3.1988)
Luminance0.1567 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7816 #341678
analogous
#786516 #5A7816 #297816
triadic
#5A7816 #165A78 #78165A
tetradic
#5A7816 #167865 #341678 #781629
square
#5A7816 #167865 #341678 #781629
split-complementary
#5A7816 #162978 #651678
monochromatic
#131A05 #33440D #5A7816 #81AC1F #A5D92F

Accessibility & contrast

On white

5.08
#5A7816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#5A7816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7816
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7816#FFFFFF#000000##FFFFFF
##5A78161.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#5E7266
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a7816;
/* rgb */ color: rgb(90, 120, 22);
/* oklch */ color: oklch(53.0% 0.125 125.9);
Tailwind
colors: {
  custom: {
    50: '#8c9f5d',
    500: '#5a7816',
    950: '#000000',
  },
}
SCSS
$custom: #5a7816;
$custom-light: #8c9f5d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7816",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 78.367,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.5305,
    "c": 0.12515,
    "h": 125.9
  },
  "luminance": 0.15665
}

Semantic roles & 50–950 ramp

primary
#5A7816
secondary
#5F3CAD
accent
#3CEC72
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7816

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

Preview Lab → · Contrast checker → · Palette generator →

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