#5F901F#5F901F

#5F901F is a mid, vivid yellow-green. Relative luminance 0.225; OKLCH L 59.7% C 0.149 H 130.8°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5F901F
RGBrgb(95, 144, 31)
HSLhsl(86, 65%, 34%)
HSVhsv(86, 78%, 56%)
CMYKcmyk(34%, 0%, 78.5%, 43.5%)
CIE-LABlab(54.53, -34.17, 50.72)
CIE-LCHlch(54.53, 61.16, 123.97°)
OKLaboklab(59.65% -0.0971 0.1125)
OKLCHoklch(59.65% 0.149 130.8)
XYZxyz(14.9398, 22.4778, 4.8476)
Luminance0.2248 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F901F #501F90
analogous
#90891F #5F901F #27901F
triadic
#5F901F #1F5F90 #901F5F
tetradic
#5F901F #1F9089 #501F90 #901F27
square
#5F901F #1F9089 #501F90 #901F27
split-complementary
#5F901F #1F2790 #891F90
monochromatic
#1D2B09 #3E5E14 #5F901F #80C22A #9ED950

Accessibility & contrast

On white

3.82
#5F901F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.50
#5F901F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F901F
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F901F#FFFFFF#000000##000000
##5F901F1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978502
Deuteranopia (green-blind)
#90812B
Tritanopia (blue-blind)
#618A7B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f901f;
/* rgb */ color: rgb(95, 144, 31);
/* oklch */ color: oklch(59.7% 0.149 130.8);
Tailwind
colors: {
  custom: {
    50: '#91b164',
    500: '#5f901f',
    950: '#000000',
  },
}
SCSS
$custom: #5f901f;
$custom-light: #91b164;
$custom-dark: #000000;
JSON
{
  "hex": "#5f901f",
  "rgb": {
    "r": 95,
    "g": 144,
    "b": 31
  },
  "hsl": {
    "h": 86.018,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59653,
    "c": 0.14859,
    "h": 130.8
  },
  "luminance": 0.22478
}

Semantic roles & 50–950 ramp

primary
#5F901F
secondary
#7E4EBC
accent
#40E889
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F901F

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

Preview Lab → · Contrast checker → · Palette generator →

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