#5F901B#5F901B

#5F901B is a mid, vivid yellow-green. Relative luminance 0.225; OKLCH L 59.6% C 0.151 H 130.6°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5F901B
RGBrgb(95, 144, 27)
HSLhsl(85, 68%, 34%)
HSVhsv(85, 81%, 56%)
CMYKcmyk(34%, 0%, 81.3%, 43.5%)
CIE-LABlab(54.51, -34.38, 51.98)
CIE-LCHlch(54.51, 62.32, 123.48°)
OKLaboklab(59.63% -0.0979 0.1145)
OKLCHoklch(59.63% 0.151 130.6)
XYZxyz(14.8903, 22.4580, 4.5870)
Luminance0.2246 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F901B #4C1B90
analogous
#90861B #5F901B #24901B
triadic
#5F901B #1B5F90 #901B5F
tetradic
#5F901B #1B9086 #4C1B90 #901B24
square
#5F901B #1B9086 #4C1B90 #901B24
split-complementary
#5F901B #1B2490 #861B90
monochromatic
#1B2908 #3D5C11 #5F901B #81C425 #9FDD49

Accessibility & contrast

On white

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

On black

5.49
#5F901B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F901B
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F901B#FFFFFF#000000##000000
##5F901B1.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#908128
Tritanopia (blue-blind)
#618A7B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f901b;
/* rgb */ color: rgb(95, 144, 27);
/* oklch */ color: oklch(59.6% 0.151 130.6);
Tailwind
colors: {
  custom: {
    50: '#91b162',
    500: '#5f901b',
    950: '#000000',
  },
}
SCSS
$custom: #5f901b;
$custom-light: #91b162;
$custom-dark: #000000;
JSON
{
  "hex": "#5f901b",
  "rgb": {
    "r": 95,
    "g": 144,
    "b": 27
  },
  "hsl": {
    "h": 85.128,
    "s": 68.421,
    "l": 33.529
  },
  "oklch": {
    "l": 0.59629,
    "c": 0.15066,
    "h": 130.6
  },
  "luminance": 0.22459
}

Semantic roles & 50–950 ramp

primary
#5F901B
secondary
#7A48BF
accent
#3DEB86
background
#F9FAF6
surface
#F2F5EB
border
#CCCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F901B

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

Preview Lab → · Contrast checker → · Palette generator →

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