#5F7D20#5F7D20

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

Color values

HEX#5F7D20
RGBrgb(95, 125, 32)
HSLhsl(79, 59%, 31%)
HSVhsv(79, 74%, 49%)
CMYKcmyk(24%, 0%, 74.4%, 51%)
CIE-LABlab(48.52, -25.09, 44.54)
CIE-LCHlch(48.52, 51.12, 119.39°)
OKLaboklab(54.77% -0.0723 0.0997)
OKLCHoklch(54.77% 0.123 126)
XYZxyz(12.3137, 17.2042, 4.0382)
Luminance0.1720 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7D20 #3E207D
analogous
#7D6C20 #5F7D20 #307D20
triadic
#5F7D20 #205F7D #7D205F
tetradic
#5F7D20 #207D6C #3E207D #7D2030
square
#5F7D20 #207D6C #3E207D #7D2030
split-complementary
#5F7D20 #20307D #6C207D
monochromatic
#151C07 #3A4C14 #5F7D20 #84AE2C #A4D047

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F7D20#FFFFFF#000000##FFFFFF
##5F7D201.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)
#84740F
Deuteranopia (green-blind)
#807328
Tritanopia (blue-blind)
#63776B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5f7d20;
/* rgb */ color: rgb(95, 125, 32);
/* oklch */ color: oklch(54.8% 0.123 126.0);
Tailwind
colors: {
  custom: {
    50: '#8fa262',
    500: '#5f7d20',
    950: '#000000',
  },
}
SCSS
$custom: #5f7d20;
$custom-light: #8fa262;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7d20",
  "rgb": {
    "r": 95,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 79.355,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.54765,
    "c": 0.12315,
    "h": 126
  },
  "luminance": 0.17204
}

Semantic roles & 50–950 ramp

primary
#5F7D20
secondary
#6A49B0
accent
#45E278
background
#F9FAF6
surface
#F1F3EB
border
#CBCDC6
text
#0D0F05
muted
#7E7F7A

Preview Lab

Preview with #5F7D20

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

Preview Lab → · Contrast checker → · Palette generator →

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