#5F7D22#5F7D22

#5F7D22 is a mid, vivid yellow-green. Relative luminance 0.172; OKLCH L 54.8% C 0.122 H 126.1°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#5F7D22
RGBrgb(95, 125, 34)
HSLhsl(80, 57%, 31%)
HSVhsv(80, 73%, 49%)
CMYKcmyk(24%, 0%, 72.8%, 51%)
CIE-LABlab(48.53, -24.96, 43.76)
CIE-LCHlch(48.53, 50.38, 119.70°)
OKLaboklab(54.78% -0.0718 0.0984)
OKLCHoklch(54.78% 0.122 126.1)
XYZxyz(12.3417, 17.2154, 4.1858)
Luminance0.1722 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D22 #40227D
analogous
#7D6D22 #5F7D22 #317D22
triadic
#5F7D22 #225F7D #7D225F
tetradic
#5F7D22 #227D6D #40227D #7D2231
square
#5F7D22 #227D6D #40227D #7D2231
split-complementary
#5F7D22 #22317D #6D227D
monochromatic
#161D08 #3A4D15 #5F7D22 #84AD2F #A3CE4B

Accessibility & contrast

On white

4.73
#5F7D22 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#5F7D22 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7D22
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7D22#FFFFFF#000000##FFFFFF
##5F7D221.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#847413
Deuteranopia (green-blind)
#80732A
Tritanopia (blue-blind)
#63776B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d22;
/* rgb */ color: rgb(95, 125, 34);
/* oklch */ color: oklch(54.8% 0.122 126.1);
Tailwind
colors: {
  custom: {
    50: '#8fa263',
    500: '#5f7d22',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d22;
$custom-light: #8fa263;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d22",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 34
  },
  "hsl": {
    "h": 79.78,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.54781,
    "c": 0.12177,
    "h": 126.1
  },
  "luminance": 0.17216
}

Semantic roles & 50–950 ramp

primary
#5F7D22
secondary
#6C4BB0
accent
#47E07A
background
#F9FAF6
surface
#F1F3EB
border
#CBCDC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F7D22

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

Preview Lab → · Contrast checker → · Palette generator →

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