#5F8F1B#5F8F1B

#5F8F1B is a mid, vivid yellow-green. Relative luminance 0.222; OKLCH L 59.4% C 0.149 H 130.3°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5F8F1B
RGBrgb(95, 143, 27)
HSLhsl(85, 68%, 33%)
HSVhsv(85, 81%, 56%)
CMYKcmyk(33.6%, 0%, 81.1%, 43.9%)
CIE-LABlab(54.19, -33.93, 51.69)
CIE-LCHlch(54.19, 61.83, 123.28°)
OKLaboklab(59.37% -0.0967 0.1139)
OKLCHoklch(59.37% 0.149 130.3)
XYZxyz(14.7395, 22.1564, 4.5367)
Luminance0.2216 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8F1B #4B1B8F
analogous
#8F851B #5F8F1B #258F1B
triadic
#5F8F1B #1B5F8F #8F1B5F
tetradic
#5F8F1B #1B8F85 #4B1B8F #8F1B25
square
#5F8F1B #1B8F85 #4B1B8F #8F1B25
split-complementary
#5F8F1B #1B258F #851B8F
monochromatic
#1B2808 #3D5C11 #5F8F1B #81C225 #9FDC48

Accessibility & contrast

On white

3.87
#5F8F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#5F8F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8F1B
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8F1B#FFFFFF#000000##000000
##5F8F1B1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#8F8028
Tritanopia (blue-blind)
#61897A
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5f8f1b;
/* rgb */ color: rgb(95, 143, 27);
/* oklch */ color: oklch(59.4% 0.149 130.3);
Tailwind
colors: {
  custom: {
    50: '#91b062',
    500: '#5f8f1b',
    950: '#000000',
  },
}
SCSS
$custom: #5f8f1b;
$custom-light: #91b062;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8f1b",
  "rgb": {
    "r": 95,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 84.828,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59371,
    "c": 0.14939,
    "h": 130.3
  },
  "luminance": 0.22157
}

Semantic roles & 50–950 ramp

primary
#5F8F1B
secondary
#7948BE
accent
#3DEB85
background
#F9FAF6
surface
#F2F4EB
border
#CCCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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