#5B7822#5B7822

#5B7822 is a mid, moderate yellow-green. Relative luminance 0.158; OKLCH L 53.2% C 0.117 H 126.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5B7822
RGBrgb(91, 120, 34)
HSLhsl(80, 56%, 30%)
HSVhsv(80, 72%, 47%)
CMYKcmyk(24.2%, 0%, 71.7%, 52.9%)
CIE-LABlab(46.67, -24.15, 41.79)
CIE-LCHlch(46.67, 48.27, 120.02°)
OKLaboklab(53.21% -0.0693 0.0943)
OKLCHoklch(53.21% 0.117 126.3)
XYZxyz(11.3196, 15.7724, 3.9611)
Luminance0.1577 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7822 #3F2278
analogous
#786A22 #5B7822 #307822
triadic
#5B7822 #225B78 #78225B
tetradic
#5B7822 #22786A #3F2278 #782230
square
#5B7822 #22786A #3F2278 #782230
split-complementary
#5B7822 #223078 #6A2278
monochromatic
#131907 #374814 #5B7822 #7FA830 #9FCB49

Accessibility & contrast

On white

5.05
#5B7822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5B7822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B7822
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7822#FFFFFF#000000##FFFFFF
##5B78221.005.054.155.05
#FFFFFF5.051.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7015
Deuteranopia (green-blind)
#7B6E29
Tritanopia (blue-blind)
#5F7267
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b7822;
/* rgb */ color: rgb(91, 120, 34);
/* oklch */ color: oklch(53.2% 0.117 126.3);
Tailwind
colors: {
  custom: {
    50: '#8c9f63',
    500: '#5b7822',
    950: '#000000',
  },
}
SCSS
$custom: #5b7822;
$custom-light: #8c9f63;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7822",
  "rgb": {
    "r": 91,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 80.233,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53208,
    "c": 0.11704,
    "h": 126.3
  },
  "luminance": 0.15773
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B7822

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

Preview Lab → · Contrast checker → · Palette generator →

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