#5A7922#5A7922

#5A7922 is a mid, moderate yellow-green. Relative luminance 0.160; OKLCH L 53.4% C 0.119 H 127.1°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5A7922
RGBrgb(90, 121, 34)
HSLhsl(81, 56%, 30%)
HSVhsv(81, 72%, 47%)
CMYKcmyk(25.6%, 0%, 71.9%, 52.5%)
CIE-LABlab(46.93, -25.07, 42.03)
CIE-LCHlch(46.93, 48.94, 120.82°)
OKLaboklab(53.4% -0.0717 0.0949)
OKLCHoklch(53.4% 0.119 127.1)
XYZxyz(11.3426, 15.9637, 3.9968)
Luminance0.1596 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7922 #412279
analogous
#796C22 #5A7922 #2F7922
triadic
#5A7922 #225A79 #79225A
tetradic
#5A7922 #22796C #412279 #79222F
square
#5A7922 #22796C #412279 #79222F
split-complementary
#5A7922 #222F79 #6C2279
monochromatic
#131907 #364915 #5A7922 #7EA92F #9DCC49

Accessibility & contrast

On white

5.01
#5A7922 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5A7922 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7922
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7922#FFFFFF#000000##FFFFFF
##5A79221.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7114
Deuteranopia (green-blind)
#7B6F29
Tritanopia (blue-blind)
#5E7368
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a7922;
/* rgb */ color: rgb(90, 121, 34);
/* oklch */ color: oklch(53.4% 0.119 127.1);
Tailwind
colors: {
  custom: {
    50: '#8ca063',
    500: '#5a7922',
    950: '#000000',
  },
}
SCSS
$custom: #5a7922;
$custom-light: #8ca063;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7922",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 34
  },
  "hsl": {
    "h": 81.379,
    "s": 56.129,
    "l": 30.392
  },
  "oklch": {
    "l": 0.53395,
    "c": 0.11893,
    "h": 127.1
  },
  "luminance": 0.15964
}

Semantic roles & 50–950 ramp

primary
#5A7922
secondary
#6D4BAC
accent
#48DF7E
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E05
muted
#7D7E7A

Preview Lab

Preview with #5A7922

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

Preview Lab → · Contrast checker → · Palette generator →

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