#5F8725#5F8725

#5F8725 is a mid, vivid yellow-green. Relative luminance 0.199; OKLCH L 57.4% C 0.133 H 129.3°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5F8725
RGBrgb(95, 135, 37)
HSLhsl(84, 57%, 34%)
HSVhsv(84, 73%, 53%)
CMYKcmyk(29.6%, 0%, 72.6%, 47.1%)
CIE-LABlab(51.72, -29.62, 45.77)
CIE-LCHlch(51.72, 54.52, 122.90°)
OKLaboklab(57.37% -0.0842 0.1031)
OKLCHoklch(57.37% 0.133 129.3)
XYZxyz(13.7172, 19.8940, 4.8671)
Luminance0.1989 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8725 #4D2587
analogous
#877E25 #5F8725 #2E8725
triadic
#5F8725 #255F87 #87255F
tetradic
#5F8725 #25877E #4D2587 #87252E
square
#5F8725 #25877E #4D2587 #87252E
split-complementary
#5F8725 #252E87 #7E2587
monochromatic
#1B270B #3D5718 #5F8725 #81B732 #9ED156

Accessibility & contrast

On white

4.22
#5F8725 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#5F8725 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8725
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8725#FFFFFF#000000##000000
##5F87251.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D15
Deuteranopia (green-blind)
#887A2E
Tritanopia (blue-blind)
#628174
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f8725;
/* rgb */ color: rgb(95, 135, 37);
/* oklch */ color: oklch(57.4% 0.133 129.3);
Tailwind
colors: {
  custom: {
    50: '#90aa66',
    500: '#5f8725',
    950: '#000000',
  },
}
SCSS
$custom: #5f8725;
$custom-light: #90aa66;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8725",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 37
  },
  "hsl": {
    "h": 84.49,
    "s": 56.977,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57374,
    "c": 0.13312,
    "h": 129.3
  },
  "luminance": 0.19894
}

Semantic roles & 50–950 ramp

primary
#5F8725
secondary
#7B53B5
accent
#48E086
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8725

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

Preview Lab → · Contrast checker → · Palette generator →

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