#5C8A21#5C8A21

#5C8A21 is a mid, vivid yellow-green. Relative luminance 0.206; OKLCH L 57.9% C 0.141 H 130.7°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#5C8A21
RGBrgb(92, 138, 33)
HSLhsl(86, 61%, 34%)
HSVhsv(86, 76%, 54%)
CMYKcmyk(33.3%, 0%, 76.1%, 45.9%)
CIE-LABlab(52.47, -32.47, 47.98)
CIE-LCHlch(52.47, 57.93, 124.09°)
OKLaboklab(57.93% -0.0921 0.1071)
OKLCHoklch(57.93% 0.141 130.7)
XYZxyz(13.7765, 20.5616, 4.6815)
Luminance0.2056 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C8A21 #4F218A
analogous
#8A8321 #5C8A21 #278A21
triadic
#5C8A21 #215C8A #8A215C
tetradic
#5C8A21 #218A83 #4F218A #8A2127
square
#5C8A21 #218A83 #4F218A #8A2127
split-complementary
#5C8A21 #21278A #83218A
monochromatic
#1A2709 #3B5915 #5C8A21 #7DBB2D #9BD550

Accessibility & contrast

On white

4.11
#5C8A21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#5C8A21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C8A21
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C8A21#FFFFFF#000000##000000
##5C8A211.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0B
Deuteranopia (green-blind)
#8A7C2B
Tritanopia (blue-blind)
#5E8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5c8a21;
/* rgb */ color: rgb(92, 138, 33);
/* oklch */ color: oklch(57.9% 0.141 130.7);
Tailwind
colors: {
  custom: {
    50: '#8eac64',
    500: '#5c8a21',
    950: '#000000',
  },
}
SCSS
$custom: #5c8a21;
$custom-light: #8eac64;
$custom-dark: #000000;
JSON
{
  "hex": "#5c8a21",
  "rgb": {
    "r": 92,
    "g": 138,
    "b": 33
  },
  "hsl": {
    "h": 86.286,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.57929,
    "c": 0.1413,
    "h": 130.7
  },
  "luminance": 0.20562
}

Semantic roles & 50–950 ramp

primary
#5C8A21
secondary
#7D4EB9
accent
#43E58A
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5C8A21

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

Preview Lab → · Contrast checker → · Palette generator →

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