#5F8D1C#5F8D1C

#5F8D1C is a mid, vivid yellow-green. Relative luminance 0.216; OKLCH L 58.9% C 0.146 H 130.0°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5F8D1C
RGBrgb(95, 141, 28)
HSLhsl(84, 67%, 33%)
HSVhsv(84, 80%, 55%)
CMYKcmyk(32.6%, 0%, 80.1%, 44.7%)
CIE-LABlab(53.56, -32.96, 50.79)
CIE-LCHlch(53.56, 60.55, 122.98°)
OKLaboklab(58.86% -0.094 0.1121)
OKLCHoklch(58.86% 0.146 130)
XYZxyz(14.4537, 21.5660, 4.4995)
Luminance0.2157 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F8D1C #4A1C8D
analogous
#8D821C #5F8D1C #268D1C
triadic
#5F8D1C #1C5F8D #8D1C5F
tetradic
#5F8D1C #1C8D82 #4A1C8D #8D1C26
square
#5F8D1C #1C8D82 #4A1C8D #8D1C26
split-complementary
#5F8D1C #1C268D #821C8D
monochromatic
#1A2708 #3D5A12 #5F8D1C #81C026 #9FDB49

Accessibility & contrast

On white

3.95
#5F8D1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#5F8D1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F8D1C
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F8D1C#FFFFFF#000000##000000
##5F8D1C1.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#8E7F28
Tritanopia (blue-blind)
#628778
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5f8d1c;
/* rgb */ color: rgb(95, 141, 28);
/* oklch */ color: oklch(58.9% 0.146 130.0);
Tailwind
colors: {
  custom: {
    50: '#91ae62',
    500: '#5f8d1c',
    950: '#000000',
  },
}
SCSS
$custom: #5f8d1c;
$custom-light: #91ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#5f8d1c",
  "rgb": {
    "r": 95,
    "g": 141,
    "b": 28
  },
  "hsl": {
    "h": 84.425,
    "s": 66.864,
    "l": 33.137
  },
  "oklch": {
    "l": 0.58859,
    "c": 0.14636,
    "h": 130
  },
  "luminance": 0.21566
}

Semantic roles & 50–950 ramp

primary
#5F8D1C
secondary
#7848BD
accent
#3EEA84
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5F8D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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