#5F8A1F#5F8A1F

#5F8A1F is a mid, vivid yellow-green. Relative luminance 0.207; OKLCH L 58.1% C 0.141 H 129.5°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5F8A1F
RGBrgb(95, 138, 31)
HSLhsl(84, 63%, 33%)
HSVhsv(84, 78%, 54%)
CMYKcmyk(31.2%, 0%, 77.5%, 45.9%)
CIE-LABlab(52.63, -31.41, 48.91)
CIE-LCHlch(52.63, 58.13, 122.71°)
OKLaboklab(58.1% -0.0896 0.1087)
OKLCHoklch(58.1% 0.141 129.5)
XYZxyz(14.0551, 20.7084, 4.5527)
Luminance0.2071 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8A1F #4A1F8A
analogous
#8A7F1F #5F8A1F #298A1F
triadic
#5F8A1F #1F5F8A #8A1F5F
tetradic
#5F8A1F #1F8A7F #4A1F8A #8A1F29
square
#5F8A1F #1F8A7F #4A1F8A #8A1F29
split-complementary
#5F8A1F #1F298A #7F1F8A
monochromatic
#1A2609 #3D5814 #5F8A1F #81BC2A #9FD74C

Accessibility & contrast

On white

4.08
#5F8A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#5F8A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8A1F
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8A1F#FFFFFF#000000##000000
##5F8A1F1.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#918006
Deuteranopia (green-blind)
#8B7D2A
Tritanopia (blue-blind)
#628476
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8a1f;
/* rgb */ color: rgb(95, 138, 31);
/* oklch */ color: oklch(58.1% 0.141 129.5);
Tailwind
colors: {
  custom: {
    50: '#90ac63',
    500: '#5f8a1f',
    950: '#000000',
  },
}
SCSS
$custom: #5f8a1f;
$custom-light: #90ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8a1f",
  "rgb": {
    "r": 95,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 84.112,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58103,
    "c": 0.14087,
    "h": 129.5
  },
  "luminance": 0.20709
}

Semantic roles & 50–950 ramp

primary
#5F8A1F
secondary
#784BBA
accent
#41E684
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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