#5D8828#5D8828

#5D8828 is a mid, vivid yellow-green. Relative luminance 0.201; OKLCH L 57.5% C 0.133 H 130.5°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5D8828
RGBrgb(93, 136, 40)
HSLhsl(87, 55%, 35%)
HSVhsv(87, 71%, 53%)
CMYKcmyk(31.6%, 0%, 70.6%, 46.7%)
CIE-LABlab(51.94, -30.66, 44.74)
CIE-LCHlch(51.94, 54.24, 124.42°)
OKLaboklab(57.53% -0.0867 0.1014)
OKLCHoklch(57.53% 0.133 130.5)
XYZxyz(13.7013, 20.0882, 5.1626)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D8828 #532888
analogous
#888328 #5D8828 #2D8828
triadic
#5D8828 #285D88 #88285D
tetradic
#5D8828 #288883 #532888 #88282D
square
#5D8828 #288883 #532888 #88282D
split-complementary
#5D8828 #282D88 #832888
monochromatic
#1C290C #3D591A #5D8828 #7DB736 #9BCF5B

Accessibility & contrast

On white

4.19
#5D8828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#5D8828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5D8828
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D8828#FFFFFF#000000##000000
##5D88281.004.195.025.02
#FFFFFF4.191.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E1A
Deuteranopia (green-blind)
#887B30
Tritanopia (blue-blind)
#5F8275
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5d8828;
/* rgb */ color: rgb(93, 136, 40);
/* oklch */ color: oklch(57.5% 0.133 130.5);
Tailwind
colors: {
  custom: {
    50: '#8eab68',
    500: '#5d8828',
    950: '#000000',
  },
}
SCSS
$custom: #5d8828;
$custom-light: #8eab68;
$custom-dark: #000000;
JSON
{
  "hex": "#5d8828",
  "rgb": {
    "r": 93,
    "g": 136,
    "b": 40
  },
  "hsl": {
    "h": 86.875,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.57528,
    "c": 0.13343,
    "h": 130.5
  },
  "luminance": 0.20089
}

Semantic roles & 50–950 ramp

primary
#5D8828
secondary
#8158B4
accent
#4ADE8C
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5D8828

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

Preview Lab → · Contrast checker → · Palette generator →

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