#5F8921#5F8921

#5F8921 is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.9% C 0.138 H 129.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5F8921
RGBrgb(95, 137, 33)
HSLhsl(84, 61%, 33%)
HSVhsv(84, 76%, 54%)
CMYKcmyk(30.7%, 0%, 75.9%, 46.3%)
CIE-LABlab(52.32, -30.82, 47.90)
CIE-LCHlch(52.32, 56.96, 122.76°)
OKLaboklab(57.86% -0.0879 0.1069)
OKLCHoklch(57.86% 0.138 129.4)
XYZxyz(13.9394, 20.4336, 4.6482)
Luminance0.2043 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8921 #4B2189
analogous
#897F21 #5F8921 #2B8921
triadic
#5F8921 #215F89 #89215F
tetradic
#5F8921 #21897F #4B2189 #89212B
square
#5F8921 #21897F #4B2189 #89212B
split-complementary
#5F8921 #212B89 #7F2189
monochromatic
#1B2609 #3D5815 #5F8921 #81BA2D #9FD550

Accessibility & contrast

On white

4.13
#5F8921 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#5F8921 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8921
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8921#FFFFFF#000000##000000
##5F89211.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0C
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#628375
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5f8921;
/* rgb */ color: rgb(95, 137, 33);
/* oklch */ color: oklch(57.9% 0.138 129.4);
Tailwind
colors: {
  custom: {
    50: '#90ab64',
    500: '#5f8921',
    950: '#000000',
  },
}
SCSS
$custom: #5f8921;
$custom-light: #90ab64;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8921",
  "rgb": {
    "r": 95,
    "g": 137,
    "b": 33
  },
  "hsl": {
    "h": 84.231,
    "s": 61.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57859,
    "c": 0.13837,
    "h": 129.4
  },
  "luminance": 0.20434
}

Semantic roles & 50–950 ramp

primary
#5F8921
secondary
#794EB8
accent
#44E484
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8921

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

Preview Lab → · Contrast checker → · Palette generator →

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