#5A7828#5A7828

#5A7828 is a mid, moderate yellow-green. Relative luminance 0.158; OKLCH L 53.2% C 0.113 H 127.4°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5A7828
RGBrgb(90, 120, 40)
HSLhsl(83, 50%, 31%)
HSVhsv(83, 67%, 47%)
CMYKcmyk(25%, 0%, 66.7%, 52.9%)
CIE-LABlab(46.66, -24.10, 39.12)
CIE-LCHlch(46.66, 45.95, 121.64°)
OKLaboklab(53.19% -0.0685 0.0896)
OKLCHoklch(53.19% 0.113 127.4)
XYZxyz(11.3159, 15.7596, 4.4528)
Luminance0.1576 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7828 #462878
analogous
#786E28 #5A7828 #327828
triadic
#5A7828 #285A78 #78285A
tetradic
#5A7828 #28786E #462878 #782832
square
#5A7828 #28786E #462878 #782832
split-complementary
#5A7828 #283278 #6E2878
monochromatic
#151C09 #384A19 #5A7828 #7CA637 #9BC654

Accessibility & contrast

On white

5.06
#5A7828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5A7828 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7828
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7828#FFFFFF#000000##FFFFFF
##5A78281.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a7828;
/* rgb */ color: rgb(90, 120, 40);
/* oklch */ color: oklch(53.2% 0.113 127.4);
Tailwind
colors: {
  custom: {
    50: '#8b9f66',
    500: '#5a7828',
    950: '#000000',
  },
}
SCSS
$custom: #5a7828;
$custom-light: #8b9f66;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7828",
  "rgb": {
    "r": 90,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 82.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.53193,
    "c": 0.11283,
    "h": 127.4
  },
  "luminance": 0.1576
}

Semantic roles & 50–950 ramp

primary
#5A7828
secondary
#7352AA
accent
#4EDA82
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5A7828

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

Preview Lab → · Contrast checker → · Palette generator →

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