#5F941F#5F941F

#5F941F is a mid, vivid yellow-green. Relative luminance 0.237; OKLCH L 60.7% C 0.154 H 131.6°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5F941F
RGBrgb(95, 148, 31)
HSLhsl(87, 65%, 35%)
HSVhsv(87, 79%, 58%)
CMYKcmyk(35.8%, 0%, 79.1%, 42%)
CIE-LABlab(55.80, -35.97, 51.92)
CIE-LCHlch(55.80, 63.16, 124.72°)
OKLaboklab(60.69% -0.102 0.115)
OKLCHoklch(60.69% 0.154 131.6)
XYZxyz(15.5564, 23.7110, 5.0531)
Luminance0.2371 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F941F #541F94
analogous
#948E1F #5F941F #25941F
triadic
#5F941F #1F5F94 #941F5F
tetradic
#5F941F #1F948E #541F94 #941F25
square
#5F941F #1F948E #541F94 #941F25
split-complementary
#5F941F #1F2594 #8E1F94
monochromatic
#1E2F0A #3F6114 #5F941F #7FC72A #9DDB53

Accessibility & contrast

On white

3.66
#5F941F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#5F941F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F941F
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F941F#FFFFFF#000000##000000
##5F941F1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#93842B
Tritanopia (blue-blind)
#618E7E
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5f941f;
/* rgb */ color: rgb(95, 148, 31);
/* oklch */ color: oklch(60.7% 0.154 131.6);
Tailwind
colors: {
  custom: {
    50: '#91b465',
    500: '#5f941f',
    950: '#000000',
  },
}
SCSS
$custom: #5f941f;
$custom-light: #91b465;
$custom-dark: #000000;
JSON
{
  "hex": "#5f941f",
  "rgb": {
    "r": 95,
    "g": 148,
    "b": 31
  },
  "hsl": {
    "h": 87.179,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60687,
    "c": 0.15369,
    "h": 131.6
  },
  "luminance": 0.23712
}

Semantic roles & 50–950 ramp

primary
#5F941F
secondary
#8251BE
accent
#3FE88C
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F941F

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

Preview Lab → · Contrast checker → · Palette generator →

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