#5D7822#5D7822

#5D7822 is a mid, moderate yellow-green. Relative luminance 0.159; OKLCH L 53.4% C 0.116 H 125.3°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5D7822
RGBrgb(93, 120, 34)
HSLhsl(79, 56%, 30%)
HSVhsv(79, 72%, 47%)
CMYKcmyk(22.5%, 0%, 71.7%, 52.9%)
CIE-LABlab(46.81, -23.30, 41.97)
CIE-LCHlch(46.81, 48.00, 119.03°)
OKLaboklab(53.35% -0.0671 0.0947)
OKLCHoklch(53.35% 0.116 125.3)
XYZxyz(11.5195, 15.8755, 3.9704)
Luminance0.1588 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7822 #3D2278
analogous
#786822 #5D7822 #327822
triadic
#5D7822 #225D78 #78225D
tetradic
#5D7822 #227868 #3D2278 #782232
square
#5D7822 #227868 #3D2278 #782232
split-complementary
#5D7822 #223278 #682278
monochromatic
#131907 #384814 #5D7822 #82A830 #A2CB49

Accessibility & contrast

On white

5.03
#5D7822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5D7822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7822
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7822#FFFFFF#000000##FFFFFF
##5D78221.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7015
Deuteranopia (green-blind)
#7B6F29
Tritanopia (blue-blind)
#617267
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5d7822;
/* rgb */ color: rgb(93, 120, 34);
/* oklch */ color: oklch(53.4% 0.116 125.3);
Tailwind
colors: {
  custom: {
    50: '#8e9f63',
    500: '#5d7822',
    950: '#000000',
  },
}
SCSS
$custom: #5d7822;
$custom-light: #8e9f63;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7822",
  "rgb": {
    "r": 93,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 78.837,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53354,
    "c": 0.11603,
    "h": 125.3
  },
  "luminance": 0.15876
}

Semantic roles & 50–950 ramp

primary
#5D7822
secondary
#694BAB
accent
#49DF78
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E05
muted
#7D7E7A

Preview Lab

Preview with #5D7822

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

Preview Lab → · Contrast checker → · Palette generator →

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