#5F8E1C#5F8E1C

#5F8E1C is a mid, vivid yellow-green. Relative luminance 0.219; OKLCH L 59.1% C 0.148 H 130.2°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5F8E1C
RGBrgb(95, 142, 28)
HSLhsl(85, 67%, 33%)
HSVhsv(85, 80%, 56%)
CMYKcmyk(33.1%, 0%, 80.3%, 44.3%)
CIE-LABlab(53.88, -33.42, 51.09)
CIE-LCHlch(53.88, 61.05, 123.19°)
OKLaboklab(59.12% -0.0953 0.1128)
OKLCHoklch(59.12% 0.148 130.2)
XYZxyz(14.6018, 21.8623, 4.5489)
Luminance0.2186 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8E1C #4B1C8E
analogous
#8E841C #5F8E1C #268E1C
triadic
#5F8E1C #1C5F8E #8E1C5F
tetradic
#5F8E1C #1C8E84 #4B1C8E #8E1C26
square
#5F8E1C #1C8E84 #4B1C8E #8E1C26
split-complementary
#5F8E1C #1C268E #841C8E
monochromatic
#1B2808 #3D5B12 #5F8E1C #81C126 #9FDB49

Accessibility & contrast

On white

3.91
#5F8E1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5F8E1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8E1C
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8E1C#FFFFFF#000000##000000
##5F8E1C1.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#8E8028
Tritanopia (blue-blind)
#628879
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5f8e1c;
/* rgb */ color: rgb(95, 142, 28);
/* oklch */ color: oklch(59.1% 0.148 130.2);
Tailwind
colors: {
  custom: {
    50: '#91af63',
    500: '#5f8e1c',
    950: '#000000',
  },
}
SCSS
$custom: #5f8e1c;
$custom-light: #91af63;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8e1c",
  "rgb": {
    "r": 95,
    "g": 142,
    "b": 28
  },
  "hsl": {
    "h": 84.737,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59118,
    "c": 0.14763,
    "h": 130.2
  },
  "luminance": 0.21863
}

Semantic roles & 50–950 ramp

primary
#5F8E1C
secondary
#7949BD
accent
#3EEA85
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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