#5F8A27#5F8A27

#5F8A27 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.2% C 0.136 H 130.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#5F8A27
RGBrgb(95, 138, 39)
HSLhsl(86, 56%, 35%)
HSVhsv(86, 72%, 54%)
CMYKcmyk(31.2%, 0%, 71.7%, 45.9%)
CIE-LABlab(52.68, -30.89, 45.95)
CIE-LCHlch(52.68, 55.37, 123.91°)
OKLaboklab(58.16% -0.0876 0.1038)
OKLCHoklch(58.16% 0.136 130.2)
XYZxyz(14.1739, 20.7559, 5.1786)
Luminance0.2076 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A27 #52278A
analogous
#8A8427 #5F8A27 #2D8A27
triadic
#5F8A27 #275F8A #8A275F
tetradic
#5F8A27 #278A84 #52278A #8A272D
square
#5F8A27 #278A84 #52278A #8A272D
split-complementary
#5F8A27 #272D8A #84278A
monochromatic
#1D2B0C #3E5A1A #5F8A27 #80BA34 #9DD15B

Accessibility & contrast

On white

4.08
#5F8A27 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#5F8A27 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A27
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A27#FFFFFF#000000##000000
##5F8A271.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#908017
Deuteranopia (green-blind)
#8A7D30
Tritanopia (blue-blind)
#618476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a27;
/* rgb */ color: rgb(95, 138, 39);
/* oklch */ color: oklch(58.2% 0.136 130.2);
Tailwind
colors: {
  custom: {
    50: '#90ac67',
    500: '#5f8a27',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a27;
$custom-light: #90ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a27",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 39
  },
  "hsl": {
    "h": 86.061,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.58163,
    "c": 0.13577,
    "h": 130.2
  },
  "luminance": 0.20756
}

Semantic roles & 50–950 ramp

primary
#5F8A27
secondary
#8057B6
accent
#49DF8A
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A27

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

Preview Lab → · Contrast checker → · Palette generator →

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