#5A7D2D#5A7D2D

#5A7D2D is a mid, moderate yellow-green. Relative luminance 0.170; OKLCH L 54.5% C 0.116 H 129.6°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5A7D2D
RGBrgb(90, 125, 45)
HSLhsl(86, 47%, 33%)
HSVhsv(86, 64%, 49%)
CMYKcmyk(28%, 0%, 64%, 51%)
CIE-LABlab(48.30, -26.15, 38.60)
CIE-LCHlch(48.30, 46.62, 124.12°)
OKLaboklab(54.54% -0.0737 0.0892)
OKLCHoklch(54.54% 0.116 129.6)
XYZxyz(12.0236, 17.0301, 5.1358)
Luminance0.1703 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7D2D #502D7D
analogous
#7D782D #5A7D2D #327D2D
triadic
#5A7D2D #2D5A7D #7D2D5A
tetradic
#5A7D2D #2D7D78 #502D7D #7D2D32
square
#5A7D2D #2D7D78 #502D7D #7D2D32
split-complementary
#5A7D2D #2D327D #782D7D
monochromatic
#19230D #3A501D #5A7D2D #7AAA3D #99C55F

Accessibility & contrast

On white

4.77
#5A7D2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#5A7D2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7D2D
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7D2D#FFFFFF#000000##FFFFFF
##5A7D2D1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837424
Deuteranopia (green-blind)
#7E7233
Tritanopia (blue-blind)
#5C786C
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5a7d2d;
/* rgb */ color: rgb(90, 125, 45);
/* oklch */ color: oklch(54.5% 0.116 129.6);
Tailwind
colors: {
  custom: {
    50: '#8ba36a',
    500: '#5a7d2d',
    950: '#000000',
  },
}
SCSS
$custom: #5a7d2d;
$custom-light: #8ba36a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7d2d",
  "rgb": {
    "r": 90,
    "g": 125,
    "b": 45
  },
  "hsl": {
    "h": 86.25,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54538,
    "c": 0.11569,
    "h": 129.6
  },
  "luminance": 0.1703
}

Semantic roles & 50–950 ramp

primary
#5A7D2D
secondary
#7E5AAC
accent
#51D78C
background
#F8FAF6
surface
#F0F3EB
border
#CBCDC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5A7D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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