#5F951F#5F951F

#5F951F is a mid, vivid yellow-green. Relative luminance 0.240; OKLCH L 60.9% C 0.155 H 131.7°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5F951F
RGBrgb(95, 149, 31)
HSLhsl(87, 66%, 35%)
HSVhsv(87, 79%, 58%)
CMYKcmyk(36.2%, 0%, 79.2%, 41.6%)
CIE-LABlab(56.11, -36.41, 52.21)
CIE-LCHlch(56.11, 63.66, 124.89°)
OKLaboklab(60.95% -0.1032 0.1156)
OKLCHoklch(60.95% 0.155 131.7)
XYZxyz(15.7139, 24.0261, 5.1056)
Luminance0.2403 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F951F #551F95
analogous
#95901F #5F951F #24951F
triadic
#5F951F #1F5F95 #951F5F
tetradic
#5F951F #1F9590 #551F95 #951F24
square
#5F951F #1F9590 #551F95 #951F24
split-complementary
#5F951F #1F2495 #901F95
monochromatic
#1E300A #3F6214 #5F951F #7FC82A #9DDB53

Accessibility & contrast

On white

3.62
#5F951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#5F951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F951F
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F951F#FFFFFF#000000##000000
##5F951F1.003.625.815.81
#FFFFFF3.621.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8900
Deuteranopia (green-blind)
#94852C
Tritanopia (blue-blind)
#608F7F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5f951f;
/* rgb */ color: rgb(95, 149, 31);
/* oklch */ color: oklch(60.9% 0.155 131.7);
Tailwind
colors: {
  custom: {
    50: '#91b465',
    500: '#5f951f',
    950: '#000000',
  },
}
SCSS
$custom: #5f951f;
$custom-light: #91b465;
$custom-dark: #000000;
JSON
{
  "hex": "#5f951f",
  "rgb": {
    "r": 95,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 87.458,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60945,
    "c": 0.15495,
    "h": 131.7
  },
  "luminance": 0.24027
}

Semantic roles & 50–950 ramp

primary
#5F951F
secondary
#8351BF
accent
#3FE98D
background
#F9FBF6
surface
#F2F6EB
border
#CCD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5F951F

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

Preview Lab → · Contrast checker → · Palette generator →

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