#5A7D22#5A7D22

#5A7D22 is a mid, vivid yellow-green. Relative luminance 0.170; OKLCH L 54.4% C 0.124 H 128.3°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5A7D22
RGBrgb(90, 125, 34)
HSLhsl(83, 57%, 31%)
HSVhsv(83, 73%, 49%)
CMYKcmyk(28%, 0%, 72.8%, 51%)
CIE-LABlab(48.20, -27.04, 43.33)
CIE-LCHlch(48.20, 51.07, 121.97°)
OKLaboklab(54.43% -0.0771 0.0976)
OKLCHoklch(54.43% 0.124 128.3)
XYZxyz(11.8388, 16.9561, 4.1622)
Luminance0.1696 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7D22 #45227D
analogous
#7D7222 #5A7D22 #2C7D22
triadic
#5A7D22 #225A7D #7D225A
tetradic
#5A7D22 #227D72 #45227D #7D222C
square
#5A7D22 #227D72 #45227D #7D222C
split-complementary
#5A7D22 #222C7D #72227D
monochromatic
#151D08 #374D15 #5A7D22 #7DAD2F #9CCE4B

Accessibility & contrast

On white

4.78
#5A7D22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#5A7D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7D22
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7D22#FFFFFF#000000##FFFFFF
##5A7D221.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837413
Deuteranopia (green-blind)
#7E722A
Tritanopia (blue-blind)
#5D776B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a7d22;
/* rgb */ color: rgb(90, 125, 34);
/* oklch */ color: oklch(54.4% 0.124 128.3);
Tailwind
colors: {
  custom: {
    50: '#8ca363',
    500: '#5a7d22',
    950: '#000000',
  },
}
SCSS
$custom: #5a7d22;
$custom-light: #8ca363;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7d22",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 83.077,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54432,
    "c": 0.12439,
    "h": 128.3
  },
  "luminance": 0.16956
}

Semantic roles & 50–950 ramp

primary
#5A7D22
secondary
#724BB0
accent
#47E082
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5A7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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