#5C8D31#5C8D31

#5C8D31 is a mid, vivid yellow-green. Relative luminance 0.215; OKLCH L 58.8% C 0.134 H 133.0°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5C8D31
RGBrgb(92, 141, 49)
HSLhsl(92, 48%, 37%)
HSVhsv(92, 65%, 55%)
CMYKcmyk(34.8%, 0%, 65.2%, 44.7%)
CIE-LABlab(53.54, -32.63, 42.54)
CIE-LCHlch(53.54, 53.62, 127.49°)
OKLaboklab(58.84% -0.0913 0.098)
OKLCHoklch(58.84% 0.134 133)
XYZxyz(14.4927, 21.5462, 6.3004)
Luminance0.2155 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C8D31 #62318D
analogous
#8A8D31 #5C8D31 #318D34
triadic
#5C8D31 #315C8D #8D315C
tetradic
#5C8D31 #318A8D #62318D #8D3431
square
#5C8D31 #318A8D #62318D #8D3431
split-complementary
#5C8D31 #34318D #8D318A
monochromatic
#213211 #3E6021 #5C8D31 #7ABA41 #99CC6C

Accessibility & contrast

On white

3.96
#5C8D31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#5C8D31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5C8D31
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C8D31#FFFFFF#000000##000000
##5C8D311.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#938226
Deuteranopia (green-blind)
#8C7F38
Tritanopia (blue-blind)
#5D877A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5c8d31;
/* rgb */ color: rgb(92, 141, 49);
/* oklch */ color: oklch(58.8% 0.134 133.0);
Tailwind
colors: {
  custom: {
    50: '#8eae6d',
    500: '#5c8d31',
    950: '#000000',
  },
}
SCSS
$custom: #5c8d31;
$custom-light: #8eae6d;
$custom-dark: #000000;
JSON
{
  "hex": "#5c8d31",
  "rgb": {
    "r": 92,
    "g": 141,
    "b": 49
  },
  "hsl": {
    "h": 91.957,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.58844,
    "c": 0.13393,
    "h": 133
  },
  "luminance": 0.21547
}

Semantic roles & 50–950 ramp

primary
#5C8D31
secondary
#8F66B4
accent
#50D898
background
#F8FAF6
surface
#F0F4EC
border
#CBCEC7
text
#0D1007
muted
#7D7F7A

Preview Lab

Preview with #5C8D31

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

Preview Lab → · Contrast checker → · Palette generator →

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