#5D7828#5D7828

#5D7828 is a mid, moderate yellow-green. Relative luminance 0.159; OKLCH L 53.4% C 0.111 H 125.9°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5D7828
RGBrgb(93, 120, 40)
HSLhsl(80, 50%, 31%)
HSVhsv(80, 67%, 47%)
CMYKcmyk(22.5%, 0%, 66.7%, 52.9%)
CIE-LABlab(46.86, -22.84, 39.40)
CIE-LCHlch(46.86, 45.54, 120.10°)
OKLaboklab(53.41% -0.0652 0.0902)
OKLCHoklch(53.41% 0.111 125.9)
XYZxyz(11.6137, 15.9131, 4.4668)
Luminance0.1591 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D7828 #432878
analogous
#786B28 #5D7828 #357828
triadic
#5D7828 #285D78 #78285D
tetradic
#5D7828 #28786B #432878 #782835
square
#5D7828 #28786B #432878 #782835
split-complementary
#5D7828 #283578 #6B2878
monochromatic
#161C09 #394A19 #5D7828 #81A637 #A0C654

Accessibility & contrast

On white

5.02
#5D7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#5D7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D7828
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D7828#FFFFFF#000000##FFFFFF
##5D78281.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E701E
Deuteranopia (green-blind)
#7B6F2E
Tritanopia (blue-blind)
#617267
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5d7828;
/* rgb */ color: rgb(93, 120, 40);
/* oklch */ color: oklch(53.4% 0.111 125.9);
Tailwind
colors: {
  custom: {
    50: '#8d9f66',
    500: '#5d7828',
    950: '#000000',
  },
}
SCSS
$custom: #5d7828;
$custom-light: #8d9f66;
$custom-dark: #000000;
JSON
{
  "hex": "#5d7828",
  "rgb": {
    "r": 93,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 80.25,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5341,
    "c": 0.11129,
    "h": 125.9
  },
  "luminance": 0.15913
}

Semantic roles & 50–950 ramp

primary
#5D7828
secondary
#7052AA
accent
#4EDA7D
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5D7828

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

Preview Lab → · Contrast checker → · Palette generator →

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