#5F8121#5F8121

#5F8121 is a mid, vivid yellow-green. Relative luminance 0.182; OKLCH L 55.8% C 0.128 H 127.3°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5F8121
RGBrgb(95, 129, 33)
HSLhsl(81, 59%, 32%)
HSVhsv(81, 74%, 51%)
CMYKcmyk(26.4%, 0%, 74.4%, 49.4%)
CIE-LABlab(49.79, -26.99, 45.41)
CIE-LCHlch(49.79, 52.83, 120.73°)
OKLaboklab(55.8% -0.0774 0.1017)
OKLCHoklch(55.8% 0.128 127.3)
XYZxyz(12.8441, 18.2430, 4.2831)
Luminance0.1824 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8121 #432181
analogous
#817321 #5F8121 #2F8121
triadic
#5F8121 #215F81 #81215F
tetradic
#5F8121 #218173 #432181 #81212F
square
#5F8121 #218173 #432181 #81212F
split-complementary
#5F8121 #212F81 #732181
monochromatic
#172008 #3B5015 #5F8121 #83B22D #A2D14B

Accessibility & contrast

On white

4.52
#5F8121 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#5F8121 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8121
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8121#FFFFFF#000000##000000
##5F81211.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#887810
Deuteranopia (green-blind)
#83762A
Tritanopia (blue-blind)
#637B6E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5f8121;
/* rgb */ color: rgb(95, 129, 33);
/* oklch */ color: oklch(55.8% 0.128 127.3);
Tailwind
colors: {
  custom: {
    50: '#90a563',
    500: '#5f8121',
    950: '#000000',
  },
}
SCSS
$custom: #5f8121;
$custom-light: #90a563;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8121",
  "rgb": {
    "r": 95,
    "g": 129,
    "b": 33
  },
  "hsl": {
    "h": 81.25,
    "s": 59.259,
    "l": 31.765
  },
  "oklch": {
    "l": 0.558,
    "c": 0.1278,
    "h": 127.3
  },
  "luminance": 0.18243
}

Semantic roles & 50–950 ramp

primary
#5F8121
secondary
#704AB4
accent
#45E27D
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D0F06
muted
#7E7F7A

Preview Lab

Preview with #5F8121

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

Preview Lab → · Contrast checker → · Palette generator →

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