#5C8F21#5C8F21

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

Color values

HEX#5C8F21
RGBrgb(92, 143, 33)
HSLhsl(88, 63%, 35%)
HSVhsv(88, 77%, 56%)
CMYKcmyk(35.7%, 0%, 76.9%, 43.9%)
CIE-LABlab(54.06, -34.75, 49.52)
CIE-LCHlch(54.06, 60.50, 125.05°)
OKLaboklab(59.23% -0.0983 0.1104)
OKLCHoklch(59.23% 0.148 131.7)
XYZxyz(14.5105, 22.0295, 4.9261)
Luminance0.2203 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C8F21 #54218F
analogous
#8F8B21 #5C8F21 #258F21
triadic
#5C8F21 #215C8F #8F215C
tetradic
#5C8F21 #218F8B #54218F #8F2125
square
#5C8F21 #218F8B #54218F #8F2125
split-complementary
#5C8F21 #21258F #8B218F
monochromatic
#1C2C0A #3C5D16 #5C8F21 #7CC12C #9AD753

Accessibility & contrast

On white

3.88
#5C8F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#5C8F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C8F21
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C8F21#FFFFFF#000000##000000
##5C8F211.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958408
Deuteranopia (green-blind)
#8E802C
Tritanopia (blue-blind)
#5D897A
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5c8f21;
/* rgb */ color: rgb(92, 143, 33);
/* oklch */ color: oklch(59.2% 0.148 131.7);
Tailwind
colors: {
  custom: {
    50: '#8fb065',
    500: '#5c8f21',
    950: '#000000',
  },
}
SCSS
$custom: #5c8f21;
$custom-light: #8fb065;
$custom-dark: #000000;
JSON
{
  "hex": "#5c8f21",
  "rgb": {
    "r": 92,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 87.818,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.59227,
    "c": 0.1478,
    "h": 131.7
  },
  "luminance": 0.2203
}

Semantic roles & 50–950 ramp

primary
#5C8F21
secondary
#8251BB
accent
#42E68E
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5C8F21

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

Preview Lab → · Contrast checker → · Palette generator →

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