#5C8D21#5C8D21

#5C8D21 is a mid, vivid yellow-green. Relative luminance 0.214; OKLCH L 58.7% C 0.145 H 131.3°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5C8D21
RGBrgb(92, 141, 33)
HSLhsl(87, 62%, 34%)
HSVhsv(87, 77%, 55%)
CMYKcmyk(34.8%, 0%, 76.6%, 44.7%)
CIE-LABlab(53.42, -33.84, 48.91)
CIE-LCHlch(53.42, 59.47, 124.68°)
OKLaboklab(58.71% -0.0959 0.1091)
OKLCHoklch(58.71% 0.145 131.3)
XYZxyz(14.2129, 21.4343, 4.8269)
Luminance0.2144 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C8D21 #52218D
analogous
#8D8821 #5C8D21 #268D21
triadic
#5C8D21 #215C8D #8D215C
tetradic
#5C8D21 #218D88 #52218D #8D2126
square
#5C8D21 #218D88 #52218D #8D2126
split-complementary
#5C8D21 #21268D #88218D
monochromatic
#1B2A0A #3C5B15 #5C8D21 #7CBF2D #9AD652

Accessibility & contrast

On white

3.97
#5C8D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#5C8D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C8D21
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C8D21#FFFFFF#000000##000000
##5C8D211.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938209
Deuteranopia (green-blind)
#8D7E2C
Tritanopia (blue-blind)
#5E8778
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5c8d21;
/* rgb */ color: rgb(92, 141, 33);
/* oklch */ color: oklch(58.7% 0.145 131.3);
Tailwind
colors: {
  custom: {
    50: '#8eae65',
    500: '#5c8d21',
    950: '#000000',
  },
}
SCSS
$custom: #5c8d21;
$custom-light: #8eae65;
$custom-dark: #000000;
JSON
{
  "hex": "#5c8d21",
  "rgb": {
    "r": 92,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 87.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58708,
    "c": 0.14521,
    "h": 131.3
  },
  "luminance": 0.21435
}

Semantic roles & 50–950 ramp

primary
#5C8D21
secondary
#8050BA
accent
#43E58C
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5C8D21

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

Preview Lab → · Contrast checker → · Palette generator →

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