#5F8727#5F8727

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

Color values

HEX#5F8727
RGBrgb(95, 135, 39)
HSLhsl(85, 55%, 34%)
HSVhsv(85, 71%, 53%)
CMYKcmyk(29.6%, 0%, 71.1%, 47.1%)
CIE-LABlab(51.73, -29.47, 44.98)
CIE-LCHlch(51.73, 53.78, 123.23°)
OKLaboklab(57.39% -0.0837 0.1017)
OKLCHoklch(57.39% 0.132 129.4)
XYZxyz(13.7494, 19.9070, 5.0371)
Luminance0.1991 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8727 #4F2787
analogous
#877F27 #5F8727 #2F8727
triadic
#5F8727 #275F87 #87275F
tetradic
#5F8727 #27877F #4F2787 #87272F
square
#5F8727 #27877F #4F2787 #87272F
split-complementary
#5F8727 #272F87 #7F2787
monochromatic
#1C280C #3E5819 #5F8727 #80B635 #9ECF59

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8727#FFFFFF#000000##000000
##5F87271.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)
#8D7D18
Deuteranopia (green-blind)
#887A2F
Tritanopia (blue-blind)
#628174
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f8727;
/* rgb */ color: rgb(95, 135, 39);
/* oklch */ color: oklch(57.4% 0.132 129.4);
Tailwind
colors: {
  custom: {
    50: '#90aa67',
    500: '#5f8727',
    950: '#000000',
  },
}
SCSS
$custom: #5f8727;
$custom-light: #90aa67;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8727",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 85,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57391,
    "c": 0.13172,
    "h": 129.4
  },
  "luminance": 0.19907
}

Semantic roles & 50–950 ramp

primary
#5F8727
secondary
#7D56B4
accent
#49DF87
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8727

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

Preview Lab → · Contrast checker → · Palette generator →

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