#5F8726#5F8726

#5F8726 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#5F8726
RGBrgb(95, 135, 38)
HSLhsl(85, 56%, 34%)
HSVhsv(85, 72%, 53%)
CMYKcmyk(29.6%, 0%, 71.9%, 47.1%)
CIE-LABlab(51.72, -29.55, 45.38)
CIE-LCHlch(51.72, 54.15, 123.07°)
OKLaboklab(57.38% -0.084 0.1024)
OKLCHoklch(57.38% 0.132 129.4)
XYZxyz(13.7331, 19.9004, 4.9510)
Luminance0.1990 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8726 #4E2687
analogous
#877F26 #5F8726 #2F8726
triadic
#5F8726 #265F87 #87265F
tetradic
#5F8726 #26877F #4E2687 #87262F
square
#5F8726 #26877F #4E2687 #87262F
split-complementary
#5F8726 #262F87 #7F2687
monochromatic
#1C270B #3D5719 #5F8726 #81B733 #9ED058

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8726#FFFFFF#000000##000000
##5F87261.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)
#8E7D16
Deuteranopia (green-blind)
#887A2E
Tritanopia (blue-blind)
#628174
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5f8726;
/* rgb */ color: rgb(95, 135, 38);
/* oklch */ color: oklch(57.4% 0.132 129.4);
Tailwind
colors: {
  custom: {
    50: '#90aa67',
    500: '#5f8726',
    950: '#000000',
  },
}
SCSS
$custom: #5f8726;
$custom-light: #90aa67;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8726",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 38
  },
  "hsl": {
    "h": 84.742,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57382,
    "c": 0.13243,
    "h": 129.4
  },
  "luminance": 0.19901
}

Semantic roles & 50–950 ramp

primary
#5F8726
secondary
#7C54B5
accent
#48DF87
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8726

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

Preview Lab → · Contrast checker → · Palette generator →

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