#5C8B21#5C8B21

#5C8B21 is a mid, vivid yellow-green. Relative luminance 0.208; OKLCH L 58.2% C 0.143 H 130.9°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5C8B21
RGBrgb(92, 139, 33)
HSLhsl(87, 62%, 34%)
HSVhsv(87, 76%, 55%)
CMYKcmyk(33.8%, 0%, 76.3%, 45.5%)
CIE-LABlab(52.78, -32.93, 48.29)
CIE-LCHlch(52.78, 58.45, 124.29°)
OKLaboklab(58.19% -0.0934 0.1078)
OKLCHoklch(58.19% 0.143 130.9)
XYZxyz(13.9207, 20.8499, 4.7295)
Luminance0.2085 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C8B21 #50218B
analogous
#8B8521 #5C8B21 #278B21
triadic
#5C8B21 #215C8B #8B215C
tetradic
#5C8B21 #218B85 #50218B #8B2127
square
#5C8B21 #218B85 #50218B #8B2127
split-complementary
#5C8B21 #21278B #85218B
monochromatic
#1B280A #3B5A15 #5C8B21 #7DBC2D #9BD651

Accessibility & contrast

On white

4.06
#5C8B21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#5C8B21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C8B21
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C8B21#FFFFFF#000000##000000
##5C8B211.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800A
Deuteranopia (green-blind)
#8B7D2B
Tritanopia (blue-blind)
#5E8577
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5c8b21;
/* rgb */ color: rgb(92, 139, 33);
/* oklch */ color: oklch(58.2% 0.143 130.9);
Tailwind
colors: {
  custom: {
    50: '#8ead64',
    500: '#5c8b21',
    950: '#000000',
  },
}
SCSS
$custom: #5c8b21;
$custom-light: #8ead64;
$custom-dark: #000000;
JSON
{
  "hex": "#5c8b21",
  "rgb": {
    "r": 92,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 86.604,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58188,
    "c": 0.1426,
    "h": 130.9
  },
  "luminance": 0.2085
}

Semantic roles & 50–950 ramp

primary
#5C8B21
secondary
#7E4FB9
accent
#43E58B
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5C8B21

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

Preview Lab → · Contrast checker → · Palette generator →

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