#5E7828#5E7828

#5E7828 is a mid, moderate yellow-green. Relative luminance 0.160; OKLCH L 53.5% C 0.111 H 125.4°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5E7828
RGBrgb(94, 120, 40)
HSLhsl(80, 50%, 31%)
HSVhsv(80, 67%, 47%)
CMYKcmyk(21.7%, 0%, 66.7%, 52.9%)
CIE-LABlab(46.93, -22.41, 39.50)
CIE-LCHlch(46.93, 45.41, 119.57°)
OKLaboklab(53.48% -0.0641 0.0904)
OKLCHoklch(53.48% 0.111 125.4)
XYZxyz(11.7156, 15.9657, 4.4715)
Luminance0.1597 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E7828 #422878
analogous
#786A28 #5E7828 #367828
triadic
#5E7828 #285E78 #78285E
tetradic
#5E7828 #28786A #422878 #782836
square
#5E7828 #28786A #422878 #782836
split-complementary
#5E7828 #283678 #6A2878
monochromatic
#161C09 #3A4A19 #5E7828 #82A637 #A1C654

Accessibility & contrast

On white

5.01
#5E7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5E7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E7828
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E7828#FFFFFF#000000##FFFFFF
##5E78281.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e7828;
/* rgb */ color: rgb(94, 120, 40);
/* oklch */ color: oklch(53.5% 0.111 125.4);
Tailwind
colors: {
  custom: {
    50: '#8e9f66',
    500: '#5e7828',
    950: '#000000',
  },
}
SCSS
$custom: #5e7828;
$custom-light: #8e9f66;
$custom-dark: #000000;
JSON
{
  "hex": "#5e7828",
  "rgb": {
    "r": 94,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 79.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53483,
    "c": 0.11079,
    "h": 125.4
  },
  "luminance": 0.15966
}

Semantic roles & 50–950 ramp

primary
#5E7828
secondary
#6E52AA
accent
#4EDA7C
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5E7828

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

Preview Lab → · Contrast checker → · Palette generator →

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