#5A7722#5A7722

#5A7722 is a mid, moderate yellow-green. Relative luminance 0.155; OKLCH L 52.9% C 0.116 H 126.4°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#5A7722
RGBrgb(90, 119, 34)
HSLhsl(80, 56%, 30%)
HSVhsv(80, 71%, 47%)
CMYKcmyk(24.4%, 0%, 71.4%, 53.3%)
CIE-LABlab(46.29, -24.07, 41.37)
CIE-LCHlch(46.29, 47.87, 120.19°)
OKLaboklab(52.88% -0.069 0.0935)
OKLCHoklch(52.88% 0.116 126.4)
XYZxyz(11.1020, 15.4826, 3.9166)
Luminance0.1548 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7722 #3F2277
analogous
#776A22 #5A7722 #2F7722
triadic
#5A7722 #225A77 #77225A
tetradic
#5A7722 #22776A #3F2277 #77222F
square
#5A7722 #22776A #3F2277 #77222F
split-complementary
#5A7722 #222F77 #6A2277
monochromatic
#121807 #364714 #5A7722 #7EA730 #9ECB49

Accessibility & contrast

On white

5.13
#5A7722 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#5A7722 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7722
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7722#FFFFFF#000000##FFFFFF
##5A77221.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F15
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#5E7166
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5a7722;
/* rgb */ color: rgb(90, 119, 34);
/* oklch */ color: oklch(52.9% 0.116 126.4);
Tailwind
colors: {
  custom: {
    50: '#8b9e62',
    500: '#5a7722',
    950: '#000000',
  },
}
SCSS
$custom: #5a7722;
$custom-light: #8b9e62;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7722",
  "rgb": {
    "r": 90,
    "g": 119,
    "b": 34
  },
  "hsl": {
    "h": 80.471,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.52878,
    "c": 0.11619,
    "h": 126.4
  },
  "luminance": 0.15483
}

Semantic roles & 50–950 ramp

primary
#5A7722
secondary
#6B4BAA
accent
#49DF7C
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E05
muted
#7D7E7A

Preview Lab

Preview with #5A7722

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

Preview Lab → · Contrast checker → · Palette generator →

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