#5F8A28#5F8A28

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

Color values

HEX#5F8A28
RGBrgb(95, 138, 40)
HSLhsl(86, 55%, 35%)
HSVhsv(86, 71%, 54%)
CMYKcmyk(31.2%, 0%, 71%, 45.9%)
CIE-LABlab(52.69, -30.82, 45.56)
CIE-LCHlch(52.69, 55.00, 124.08°)
OKLaboklab(58.17% -0.0873 0.1031)
OKLCHoklch(58.17% 0.135 130.3)
XYZxyz(14.1907, 20.7626, 5.2670)
Luminance0.2076 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A28 #53288A
analogous
#8A8428 #5F8A28 #2E8A28
triadic
#5F8A28 #285F8A #8A285F
tetradic
#5F8A28 #288A84 #53288A #8A282E
square
#5F8A28 #288A84 #53288A #8A282E
split-complementary
#5F8A28 #282E8A #84288A
monochromatic
#1E2B0C #3E5B1A #5F8A28 #80B936 #9DD05D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F8A28#FFFFFF#000000##000000
##5F8A281.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)
#908019
Deuteranopia (green-blind)
#8A7D30
Tritanopia (blue-blind)
#618476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a28;
/* rgb */ color: rgb(95, 138, 40);
/* oklch */ color: oklch(58.2% 0.135 130.3);
Tailwind
colors: {
  custom: {
    50: '#90ac68',
    500: '#5f8a28',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a28;
$custom-light: #90ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a28",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 86.327,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.58171,
    "c": 0.13506,
    "h": 130.3
  },
  "luminance": 0.20763
}

Semantic roles & 50–950 ramp

primary
#5F8A28
secondary
#8159B5
accent
#49DE8B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A28

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

Preview Lab → · Contrast checker → · Palette generator →

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