#5A7622#5A7622

#5A7622 is a mid, moderate yellow-green. Relative luminance 0.152; OKLCH L 52.6% C 0.115 H 126.1°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5A7622
RGBrgb(90, 118, 34)
HSLhsl(80, 55%, 30%)
HSVhsv(80, 71%, 46%)
CMYKcmyk(23.7%, 0%, 71.2%, 53.7%)
CIE-LABlab(45.97, -23.57, 41.05)
CIE-LCHlch(45.97, 47.33, 119.86°)
OKLaboklab(52.62% -0.0676 0.0928)
OKLCHoklch(52.62% 0.115 126.1)
XYZxyz(10.9837, 15.2459, 3.8771)
Luminance0.1525 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7622 #3E2276
analogous
#766822 #5A7622 #307622
triadic
#5A7622 #225A76 #76225A
tetradic
#5A7622 #227668 #3E2276 #762230
square
#5A7622 #227668 #3E2276 #762230
split-complementary
#5A7622 #223076 #682276
monochromatic
#121807 #364614 #5A7622 #7EA630 #9FCA48

Accessibility & contrast

On white

5.19
#5A7622 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#5A7622 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7622
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7622#FFFFFF#000000##FFFFFF
##5A76221.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E15
Deuteranopia (green-blind)
#796C29
Tritanopia (blue-blind)
#5E7065
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a7622;
/* rgb */ color: rgb(90, 118, 34);
/* oklch */ color: oklch(52.6% 0.115 126.1);
Tailwind
colors: {
  custom: {
    50: '#8b9d62',
    500: '#5a7622',
    950: '#000000',
  },
}
SCSS
$custom: #5a7622;
$custom-light: #8b9d62;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7622",
  "rgb": {
    "r": 90,
    "g": 118,
    "b": 34
  },
  "hsl": {
    "h": 80,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52619,
    "c": 0.11481,
    "h": 126.1
  },
  "luminance": 0.15246
}

Semantic roles & 50–950 ramp

primary
#5A7622
secondary
#6A4BA9
accent
#49DF7B
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E05
muted
#7D7E7A

Preview Lab

Preview with #5A7622

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

Preview Lab → · Contrast checker → · Palette generator →

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