#5A8622#5A8622

#5A8622 is a mid, vivid yellow-green. Relative luminance 0.193; OKLCH L 56.8% C 0.136 H 130.6°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5A8622
RGBrgb(90, 134, 34)
HSLhsl(86, 60%, 33%)
HSVhsv(86, 75%, 53%)
CMYKcmyk(32.8%, 0%, 74.6%, 47.5%)
CIE-LABlab(51.08, -31.33, 46.21)
CIE-LCHlch(51.08, 55.83, 124.14°)
OKLaboklab(56.77% -0.0888 0.1036)
OKLCHoklch(56.77% 0.136 130.6)
XYZxyz(13.0302, 19.3389, 4.5593)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8622 #4E2286
analogous
#868022 #5A8622 #288622
triadic
#5A8622 #225A86 #86225A
tetradic
#5A8622 #228680 #4E2286 #862228
square
#5A8622 #228680 #4E2286 #862228
split-complementary
#5A8622 #222886 #802286
monochromatic
#182409 #395516 #5A8622 #7BB72E #99D350

Accessibility & contrast

On white

4.31
#5A8622 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5A8622 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8622
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8622#FFFFFF#000000##000000
##5A86221.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C0F
Deuteranopia (green-blind)
#86792B
Tritanopia (blue-blind)
#5C8073
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a8622;
/* rgb */ color: rgb(90, 134, 34);
/* oklch */ color: oklch(56.8% 0.136 130.6);
Tailwind
colors: {
  custom: {
    50: '#8ca964',
    500: '#5a8622',
    950: '#000000',
  },
}
SCSS
$custom: #5a8622;
$custom-light: #8ca964;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8622",
  "rgb": {
    "r": 90,
    "g": 134,
    "b": 34
  },
  "hsl": {
    "h": 86.4,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.56772,
    "c": 0.13648,
    "h": 130.6
  },
  "luminance": 0.19339
}

Semantic roles & 50–950 ramp

primary
#5A8622
secondary
#7C4EB6
accent
#45E38A
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1006
muted
#7D7F7A

Preview Lab

Preview with #5A8622

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

Preview Lab → · Contrast checker → · Palette generator →

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