#5F8F21#5F8F21

#5F8F21 is a mid, vivid yellow-green. Relative luminance 0.222; OKLCH L 59.4% C 0.146 H 130.7°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5F8F21
RGBrgb(95, 143, 33)
HSLhsl(86, 63%, 35%)
HSVhsv(86, 77%, 56%)
CMYKcmyk(33.6%, 0%, 76.9%, 43.9%)
CIE-LABlab(54.23, -33.60, 49.74)
CIE-LCHlch(54.23, 60.03, 124.04°)
OKLaboklab(59.41% -0.0954 0.1108)
OKLCHoklch(59.41% 0.146 130.7)
XYZxyz(14.8162, 22.1871, 4.9405)
Luminance0.2219 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8F21 #51218F
analogous
#8F8821 #5F8F21 #288F21
triadic
#5F8F21 #215F8F #8F215F
tetradic
#5F8F21 #218F88 #51218F #8F2128
square
#5F8F21 #218F88 #51218F #8F2128
split-complementary
#5F8F21 #21288F #88218F
monochromatic
#1D2C0A #3E5D16 #5F8F21 #80C12C #9ED753

Accessibility & contrast

On white

3.86
#5F8F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#5F8F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8F21
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8F21#FFFFFF#000000##000000
##5F8F211.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968408
Deuteranopia (green-blind)
#8F802C
Tritanopia (blue-blind)
#61897A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f8f21;
/* rgb */ color: rgb(95, 143, 33);
/* oklch */ color: oklch(59.4% 0.146 130.7);
Tailwind
colors: {
  custom: {
    50: '#91b065',
    500: '#5f8f21',
    950: '#000000',
  },
}
SCSS
$custom: #5f8f21;
$custom-light: #91b065;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8f21",
  "rgb": {
    "r": 95,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 86.182,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59407,
    "c": 0.14618,
    "h": 130.7
  },
  "luminance": 0.22188
}

Semantic roles & 50–950 ramp

primary
#5F8F21
secondary
#7F51BB
accent
#42E68A
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8F21

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

Preview Lab → · Contrast checker → · Palette generator →

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