#5C8F1F#5C8F1F

#5C8F1F is a mid, vivid yellow-green. Relative luminance 0.220; OKLCH L 59.2% C 0.149 H 131.5°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5C8F1F
RGBrgb(92, 143, 31)
HSLhsl(87, 64%, 34%)
HSVhsv(87, 78%, 56%)
CMYKcmyk(35.7%, 0%, 78.3%, 43.9%)
CIE-LABlab(54.05, -34.86, 50.20)
CIE-LCHlch(54.05, 61.12, 124.78°)
OKLaboklab(59.21% -0.0988 0.1115)
OKLCHoklch(59.21% 0.149 131.5)
XYZxyz(14.4833, 22.0186, 4.7830)
Luminance0.2202 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C8F1F #521F8F
analogous
#8F8A1F #5C8F1F #248F1F
triadic
#5C8F1F #1F5C8F #8F1F5C
tetradic
#5C8F1F #1F8F8A #521F8F #8F1F24
square
#5C8F1F #1F8F8A #521F8F #8F1F24
split-complementary
#5C8F1F #1F248F #8A1F8F
monochromatic
#1B2A09 #3C5D14 #5C8F1F #7CC12A #9AD94F

Accessibility & contrast

On white

3.89
#5C8F1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#5C8F1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C8F1F
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C8F1F#FFFFFF#000000##000000
##5C8F1F1.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#958403
Deuteranopia (green-blind)
#8F802B
Tritanopia (blue-blind)
#5E897A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5c8f1f;
/* rgb */ color: rgb(92, 143, 31);
/* oklch */ color: oklch(59.2% 0.149 131.5);
Tailwind
colors: {
  custom: {
    50: '#8fb064',
    500: '#5c8f1f',
    950: '#000000',
  },
}
SCSS
$custom: #5c8f1f;
$custom-light: #8fb064;
$custom-dark: #000000;
JSON
{
  "hex": "#5c8f1f",
  "rgb": {
    "r": 92,
    "g": 143,
    "b": 31
  },
  "hsl": {
    "h": 87.321,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.59214,
    "c": 0.14893,
    "h": 131.5
  },
  "luminance": 0.22019
}

Semantic roles & 50–950 ramp

primary
#5C8F1F
secondary
#804EBC
accent
#40E78C
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5C8F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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