#5F8A21#5F8A21

#5F8A21 is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.140 H 129.7°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5F8A21
RGBrgb(95, 138, 33)
HSLhsl(85, 61%, 34%)
HSVhsv(85, 76%, 54%)
CMYKcmyk(31.2%, 0%, 76.1%, 45.9%)
CIE-LABlab(52.64, -31.29, 48.21)
CIE-LCHlch(52.64, 57.47, 122.99°)
OKLaboklab(58.12% -0.0891 0.1075)
OKLCHoklch(58.12% 0.14 129.7)
XYZxyz(14.0823, 20.7192, 4.6958)
Luminance0.2072 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A21 #4C218A
analogous
#8A8021 #5F8A21 #2A8A21
triadic
#5F8A21 #215F8A #8A215F
tetradic
#5F8A21 #218A80 #4C218A #8A212A
square
#5F8A21 #218A80 #4C218A #8A212A
split-complementary
#5F8A21 #212A8A #80218A
monochromatic
#1B2709 #3D5915 #5F8A21 #81BB2D #9FD550

Accessibility & contrast

On white

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

On black

5.14
#5F8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A21
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A21#FFFFFF#000000##000000
##5F8A211.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800B
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#628476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a21;
/* rgb */ color: rgb(95, 138, 33);
/* oklch */ color: oklch(58.1% 0.140 129.7);
Tailwind
colors: {
  custom: {
    50: '#90ac64',
    500: '#5f8a21',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a21;
$custom-light: #90ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a21",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 84.571,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.58117,
    "c": 0.13968,
    "h": 129.7
  },
  "luminance": 0.2072
}

Semantic roles & 50–950 ramp

primary
#5F8A21
secondary
#7A4EB9
accent
#43E585
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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