#5C7828#5C7828

#5C7828 is a mid, moderate yellow-green. Relative luminance 0.159; OKLCH L 53.3% C 0.112 H 126.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#5C7828
RGBrgb(92, 120, 40)
HSLhsl(81, 50%, 31%)
HSVhsv(81, 67%, 47%)
CMYKcmyk(23.3%, 0%, 66.7%, 52.9%)
CIE-LABlab(46.79, -23.26, 39.31)
CIE-LCHlch(46.79, 45.68, 120.62°)
OKLaboklab(53.34% -0.0663 0.09)
OKLCHoklch(53.34% 0.112 126.4)
XYZxyz(11.5131, 15.8613, 4.4620)
Luminance0.1586 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C7828 #442878
analogous
#786C28 #5C7828 #347828
triadic
#5C7828 #285C78 #78285C
tetradic
#5C7828 #28786C #442878 #782834
square
#5C7828 #28786C #442878 #782834
split-complementary
#5C7828 #283478 #6C2878
monochromatic
#161C09 #394A19 #5C7828 #7FA637 #9EC654

Accessibility & contrast

On white

5.03
#5C7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#5C7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5C7828
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C7828#FFFFFF#000000##FFFFFF
##5C78281.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5c7828;
/* rgb */ color: rgb(92, 120, 40);
/* oklch */ color: oklch(53.3% 0.112 126.4);
Tailwind
colors: {
  custom: {
    50: '#8d9f66',
    500: '#5c7828',
    950: '#000000',
  },
}
SCSS
$custom: #5c7828;
$custom-light: #8d9f66;
$custom-dark: #000000;
JSON
{
  "hex": "#5c7828",
  "rgb": {
    "r": 92,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 81,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53337,
    "c": 0.1118,
    "h": 126.4
  },
  "luminance": 0.15861
}

Semantic roles & 50–950 ramp

primary
#5C7828
secondary
#7152AA
accent
#4EDA7F
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5C7828

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

Preview Lab → · Contrast checker → · Palette generator →

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