#5F7822#5F7822

#5F7822 is a mid, moderate yellow-green. Relative luminance 0.160; OKLCH L 53.5% C 0.115 H 124.3°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#5F7822
RGBrgb(95, 120, 34)
HSLhsl(77, 56%, 30%)
HSVhsv(77, 72%, 47%)
CMYKcmyk(20.8%, 0%, 71.7%, 52.9%)
CIE-LABlab(46.95, -22.44, 42.16)
CIE-LCHlch(46.95, 47.76, 118.02°)
OKLaboklab(53.5% -0.0648 0.095)
OKLCHoklch(53.5% 0.115 124.3)
XYZxyz(11.7246, 15.9812, 3.9801)
Luminance0.1598 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7822 #3B2278
analogous
#786622 #5F7822 #347822
triadic
#5F7822 #225F78 #78225F
tetradic
#5F7822 #227866 #3B2278 #782234
square
#5F7822 #227866 #3B2278 #782234
split-complementary
#5F7822 #223478 #662278
monochromatic
#131907 #394814 #5F7822 #85A830 #A6CB49

Accessibility & contrast

On white

5.00
#5F7822 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#5F7822 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7822
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7822#FFFFFF#000000##FFFFFF
##5F78221.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f7822;
/* rgb */ color: rgb(95, 120, 34);
/* oklch */ color: oklch(53.5% 0.115 124.3);
Tailwind
colors: {
  custom: {
    50: '#8f9f63',
    500: '#5f7822',
    950: '#000000',
  },
}
SCSS
$custom: #5f7822;
$custom-light: #8f9f63;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7822",
  "rgb": {
    "r": 95,
    "g": 120,
    "b": 34
  },
  "hsl": {
    "h": 77.442,
    "s": 55.844,
    "l": 30.196
  },
  "oklch": {
    "l": 0.53502,
    "c": 0.11503,
    "h": 124.3
  },
  "luminance": 0.15981
}

Semantic roles & 50–950 ramp

primary
#5F7822
secondary
#674BAB
accent
#49DF74
background
#F9F9F6
surface
#F1F2EB
border
#CBCCC6
text
#0D0E05
muted
#7E7E7A

Preview Lab

Preview with #5F7822

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

Preview Lab → · Contrast checker → · Palette generator →

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