#5F7928#5F7928

#5F7928 is a mid, moderate yellow-green. Relative luminance 0.163; OKLCH L 53.8% C 0.112 H 125.2°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5F7928
RGBrgb(95, 121, 40)
HSLhsl(79, 50%, 32%)
HSVhsv(79, 67%, 47%)
CMYKcmyk(21.5%, 0%, 66.9%, 52.5%)
CIE-LABlab(47.31, -22.50, 39.93)
CIE-LCHlch(47.31, 45.83, 119.40°)
OKLaboklab(53.81% -0.0644 0.0912)
OKLCHoklch(53.81% 0.112 125.2)
XYZxyz(11.9397, 16.2607, 4.5167)
Luminance0.1626 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F7928 #422879
analogous
#796B28 #5F7928 #377928
triadic
#5F7928 #285F79 #79285F
tetradic
#5F7928 #28796B #422879 #792837
square
#5F7928 #28796B #422879 #792837
split-complementary
#5F7928 #283779 #6B2879
monochromatic
#171D0A #3B4B19 #5F7928 #83A737 #A2C755

Accessibility & contrast

On white

4.94
#5F7928 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5F7928 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F7928
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F7928#FFFFFF#000000##FFFFFF
##5F79281.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80711E
Deuteranopia (green-blind)
#7C702E
Tritanopia (blue-blind)
#637368
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5f7928;
/* rgb */ color: rgb(95, 121, 40);
/* oklch */ color: oklch(53.8% 0.112 125.2);
Tailwind
colors: {
  custom: {
    50: '#8f9f66',
    500: '#5f7928',
    950: '#000000',
  },
}
SCSS
$custom: #5f7928;
$custom-light: #8f9f66;
$custom-dark: #000000;
JSON
{
  "hex": "#5f7928",
  "rgb": {
    "r": 95,
    "g": 121,
    "b": 40
  },
  "hsl": {
    "h": 79.259,
    "s": 50.311,
    "l": 31.569
  },
  "oklch": {
    "l": 0.53813,
    "c": 0.11169,
    "h": 125.2
  },
  "luminance": 0.16261
}

Semantic roles & 50–950 ramp

primary
#5F7928
secondary
#6E52AB
accent
#4EDA7B
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0D0E06
muted
#7D7E7A

Preview Lab

Preview with #5F7928

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

Preview Lab → · Contrast checker → · Palette generator →

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