#5B7722#5B7722

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

Color values

HEX#5B7722
RGBrgb(91, 119, 34)
HSLhsl(80, 56%, 30%)
HSVhsv(80, 71%, 47%)
CMYKcmyk(23.5%, 0%, 71.4%, 53.3%)
CIE-LABlab(46.36, -23.65, 41.46)
CIE-LCHlch(46.36, 47.73, 119.69°)
OKLaboklab(52.95% -0.0679 0.0937)
OKLCHoklch(52.95% 0.116 125.9)
XYZxyz(11.2000, 15.5331, 3.9212)
Luminance0.1553 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7722 #3E2277
analogous
#776922 #5B7722 #307722
triadic
#5B7722 #225B77 #77225B
tetradic
#5B7722 #227769 #3E2277 #772230
square
#5B7722 #227769 #3E2277 #772230
split-complementary
#5B7722 #223077 #692277
monochromatic
#121807 #374714 #5B7722 #7FA730 #A0CB49

Accessibility & contrast

On white

5.11
#5B7722 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#5B7722 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7722
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7722#FFFFFF#000000##FFFFFF
##5B77221.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F15
Deuteranopia (green-blind)
#7A6D29
Tritanopia (blue-blind)
#5F7166
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #5b7722;
/* rgb */ color: rgb(91, 119, 34);
/* oklch */ color: oklch(52.9% 0.116 125.9);
Tailwind
colors: {
  custom: {
    50: '#8c9e63',
    500: '#5b7722',
    950: '#000000',
  },
}
SCSS
$custom: #5b7722;
$custom-light: #8c9e63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7722",
  "rgb": {
    "r": 91,
    "g": 119,
    "b": 34
  },
  "hsl": {
    "h": 79.765,
    "s": 55.556,
    "l": 30
  },
  "oklch": {
    "l": 0.5295,
    "c": 0.11568,
    "h": 125.9
  },
  "luminance": 0.15533
}

Semantic roles & 50–950 ramp

primary
#5B7722
secondary
#6A4BAA
accent
#49DF7A
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E05
muted
#7D7E7A

Preview Lab

Preview with #5B7722

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

Preview Lab → · Contrast checker → · Palette generator →

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