#5F8729#5F8729

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

Color values

HEX#5F8729
RGBrgb(95, 135, 41)
HSLhsl(86, 53%, 35%)
HSVhsv(86, 70%, 53%)
CMYKcmyk(29.6%, 0%, 69.6%, 47.1%)
CIE-LABlab(51.75, -29.32, 44.17)
CIE-LCHlch(51.75, 53.02, 123.58°)
OKLaboklab(57.41% -0.0831 0.1003)
OKLCHoklch(57.41% 0.13 129.6)
XYZxyz(13.7835, 19.9206, 5.2162)
Luminance0.1992 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8729 #512987
analogous
#878029 #5F8729 #308729
triadic
#5F8729 #295F87 #87295F
tetradic
#5F8729 #298780 #512987 #872930
square
#5F8729 #298780 #512987 #872930
split-complementary
#5F8729 #293087 #802987
monochromatic
#1D290C #3E581B #5F8729 #80B637 #9ECE5D

Accessibility & contrast

On white

4.21
#5F8729 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8729#FFFFFF#000000##000000
##5F87291.004.214.984.98
#FFFFFF4.211.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f8729;
/* rgb */ color: rgb(95, 135, 41);
/* oklch */ color: oklch(57.4% 0.130 129.6);
Tailwind
colors: {
  custom: {
    50: '#90aa68',
    500: '#5f8729',
    950: '#000000',
  },
}
SCSS
$custom: #5f8729;
$custom-light: #90aa68;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8729",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 41
  },
  "hsl": {
    "h": 85.532,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57408,
    "c": 0.13026,
    "h": 129.6
  },
  "luminance": 0.19921
}

Semantic roles & 50–950 ramp

primary
#5F8729
secondary
#7F59B3
accent
#4BDD89
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8729

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

Preview Lab → · Contrast checker → · Palette generator →

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