#5F8B1C#5F8B1C

#5F8B1C is a mid, vivid yellow-green. Relative luminance 0.210; OKLCH L 58.3% C 0.144 H 129.5°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#5F8B1C
RGBrgb(95, 139, 28)
HSLhsl(84, 66%, 33%)
HSVhsv(84, 80%, 55%)
CMYKcmyk(31.7%, 0%, 79.9%, 45.5%)
CIE-LABlab(52.93, -32.04, 50.20)
CIE-LCHlch(52.93, 59.55, 122.55°)
OKLaboklab(58.34% -0.0916 0.1109)
OKLCHoklch(58.34% 0.144 129.5)
XYZxyz(14.1615, 20.9815, 4.4021)
Luminance0.2098 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8B1C #481C8B
analogous
#8B7F1C #5F8B1C #278B1C
triadic
#5F8B1C #1C5F8B #8B1C5F
tetradic
#5F8B1C #1C8B7F #481C8B #8B1C27
square
#5F8B1C #1C8B7F #481C8B #8B1C27
split-complementary
#5F8B1C #1C278B #7F1C8B
monochromatic
#192507 #3C5812 #5F8B1C #82BE26 #A0DA47

Accessibility & contrast

On white

4.04
#5F8B1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#5F8B1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8B1C
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8B1C#FFFFFF#000000##000000
##5F8B1C1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#8C7D28
Tritanopia (blue-blind)
#628576
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5f8b1c;
/* rgb */ color: rgb(95, 139, 28);
/* oklch */ color: oklch(58.3% 0.144 129.5);
Tailwind
colors: {
  custom: {
    50: '#91ad62',
    500: '#5f8b1c',
    950: '#000000',
  },
}
SCSS
$custom: #5f8b1c;
$custom-light: #91ad62;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8b1c",
  "rgb": {
    "r": 95,
    "g": 139,
    "b": 28
  },
  "hsl": {
    "h": 83.784,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.58343,
    "c": 0.14381,
    "h": 129.5
  },
  "luminance": 0.20982
}

Semantic roles & 50–950 ramp

primary
#5F8B1C
secondary
#7547BC
accent
#3EE982
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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