#5F9321#5F9321

#5F9321 is a mid, vivid yellow-green. Relative luminance 0.234; OKLCH L 60.4% C 0.151 H 131.5°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#5F9321
RGBrgb(95, 147, 33)
HSLhsl(87, 63%, 35%)
HSVhsv(87, 78%, 58%)
CMYKcmyk(35.4%, 0%, 77.6%, 42.4%)
CIE-LABlab(55.49, -35.41, 50.96)
CIE-LCHlch(55.49, 62.05, 124.79°)
OKLaboklab(60.44% -0.1003 0.1133)
OKLCHoklch(60.44% 0.151 131.5)
XYZxyz(15.4274, 23.4095, 5.1442)
Luminance0.2341 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F9321 #552193
analogous
#938E21 #5F9321 #269321
triadic
#5F9321 #215F93 #93215F
tetradic
#5F9321 #21938E #552193 #932126
square
#5F9321 #21938E #552193 #932126
split-complementary
#5F9321 #212693 #8E2193
monochromatic
#1E2F0B #3F6116 #5F9321 #7FC52C #9DD955

Accessibility & contrast

On white

3.70
#5F9321 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#5F9321 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F9321
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F9321#FFFFFF#000000##000000
##5F93211.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8705
Deuteranopia (green-blind)
#93842D
Tritanopia (blue-blind)
#618D7E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5f9321;
/* rgb */ color: rgb(95, 147, 33);
/* oklch */ color: oklch(60.4% 0.151 131.5);
Tailwind
colors: {
  custom: {
    50: '#91b366',
    500: '#5f9321',
    950: '#000000',
  },
}
SCSS
$custom: #5f9321;
$custom-light: #91b366;
$custom-dark: #000000;
JSON
{
  "hex": "#5f9321",
  "rgb": {
    "r": 95,
    "g": 147,
    "b": 33
  },
  "hsl": {
    "h": 87.368,
    "s": 63.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60441,
    "c": 0.15132,
    "h": 131.5
  },
  "luminance": 0.2341
}

Semantic roles & 50–950 ramp

primary
#5F9321
secondary
#8353BD
accent
#41E68D
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F9321

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

Preview Lab → · Contrast checker → · Palette generator →

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