#5B7622#5B7622

#5B7622 is a mid, moderate yellow-green. Relative luminance 0.153; OKLCH L 52.7% C 0.114 H 125.6°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5B7622
RGBrgb(91, 118, 34)
HSLhsl(79, 55%, 30%)
HSVhsv(79, 71%, 46%)
CMYKcmyk(22.9%, 0%, 71.2%, 53.7%)
CIE-LABlab(46.04, -23.14, 41.14)
CIE-LCHlch(46.04, 47.20, 119.36°)
OKLaboklab(52.69% -0.0665 0.093)
OKLCHoklch(52.69% 0.114 125.6)
XYZxyz(11.0816, 15.2964, 3.8817)
Luminance0.1530 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7622 #3D2276
analogous
#766722 #5B7622 #317622
triadic
#5B7622 #225B76 #76225B
tetradic
#5B7622 #227667 #3D2276 #762231
square
#5B7622 #227667 #3D2276 #762231
split-complementary
#5B7622 #223176 #672276
monochromatic
#121807 #364614 #5B7622 #80A630 #A0CA48

Accessibility & contrast

On white

5.17
#5B7622 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5B7622 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7622
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7622#FFFFFF#000000##FFFFFF
##5B76221.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E15
Deuteranopia (green-blind)
#796D29
Tritanopia (blue-blind)
#5F7065
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b7622;
/* rgb */ color: rgb(91, 118, 34);
/* oklch */ color: oklch(52.7% 0.114 125.6);
Tailwind
colors: {
  custom: {
    50: '#8c9d62',
    500: '#5b7622',
    950: '#000000',
  },
}
SCSS
$custom: #5b7622;
$custom-light: #8c9d62;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7622",
  "rgb": {
    "r": 91,
    "g": 118,
    "b": 34
  },
  "hsl": {
    "h": 79.286,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52692,
    "c": 0.11431,
    "h": 125.6
  },
  "luminance": 0.15297
}

Semantic roles & 50–950 ramp

primary
#5B7622
secondary
#694BA9
accent
#49DF79
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E05
muted
#7D7E7A

Preview Lab

Preview with #5B7622

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

Preview Lab → · Contrast checker → · Palette generator →

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