#5A7E45#5A7E45

#5A7E45 is a mid, moderate yellow-green. Relative luminance 0.175; OKLCH L 55.1% C 0.093 H 134.9°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#5A7E45
RGBrgb(90, 126, 69)
HSLhsl(98, 29%, 38%)
HSVhsv(98, 45%, 49%)
CMYKcmyk(28.6%, 0%, 45.2%, 50.6%)
CIE-LABlab(48.91, -23.84, 26.98)
CIE-LCHlch(48.91, 36.01, 131.46°)
OKLaboklab(55.13% -0.0655 0.0658)
OKLCHoklch(55.13% 0.093 134.9)
XYZxyz(12.7512, 17.5246, 8.3398)
Luminance0.1752 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7E45 #69457E
analogous
#767E45 #5A7E45 #457E4C
triadic
#5A7E45 #455A7E #7E455A
tetradic
#5A7E45 #45767E #69457E #7E4C45
square
#5A7E45 #45767E #69457E #7E4C45
split-complementary
#5A7E45 #4C457E #7E4576
monochromatic
#222F1A #3E562F #5A7E45 #76A55B #97BB83

Accessibility & contrast

On white

4.66
#5A7E45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#5A7E45 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7E45
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7E45#FFFFFF#000000##FFFFFF
##5A7E451.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827641
Deuteranopia (green-blind)
#7D7348
Tritanopia (blue-blind)
#5A7A70
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5a7e45;
/* rgb */ color: rgb(90, 126, 69);
/* oklch */ color: oklch(55.1% 0.093 134.9);
Tailwind
colors: {
  custom: {
    50: '#8aa379',
    500: '#5a7e45',
    950: '#000000',
  },
}
SCSS
$custom: #5a7e45;
$custom-light: #8aa379;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7e45",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 69
  },
  "hsl": {
    "h": 97.895,
    "s": 29.231,
    "l": 38.235
  },
  "oklch": {
    "l": 0.55134,
    "c": 0.09282,
    "h": 134.9
  },
  "luminance": 0.17525
}

Semantic roles & 50–950 ramp

primary
#5A7E45
secondary
#9579A6
accent
#62C5A1
background
#F8FAF7
surface
#F0F4ED
border
#CBCEC8
text
#0C0F09
muted
#7D7F7B

Preview Lab

Preview with #5A7E45

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

Preview Lab → · Contrast checker → · Palette generator →

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