#5A7A2D#5A7A2D

#5A7A2D is a mid, moderate yellow-green. Relative luminance 0.163; OKLCH L 53.8% C 0.111 H 128.7°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5A7A2D
RGBrgb(90, 122, 45)
HSLhsl(85, 46%, 33%)
HSVhsv(85, 63%, 48%)
CMYKcmyk(26.2%, 0%, 63.1%, 52.2%)
CIE-LABlab(47.34, -24.66, 37.54)
CIE-LCHlch(47.34, 44.91, 123.30°)
OKLaboklab(53.76% -0.0696 0.0869)
OKLCHoklch(53.76% 0.111 128.7)
XYZxyz(11.6496, 16.2819, 5.0111)
Luminance0.1628 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7A2D #4D2D7A
analogous
#7A732D #5A7A2D #337A2D
triadic
#5A7A2D #2D5A7A #7A2D5A
tetradic
#5A7A2D #2D7A73 #4D2D7A #7A2D33
square
#5A7A2D #2D7A73 #4D2D7A #7A2D33
split-complementary
#5A7A2D #2D337A #732D7A
monochromatic
#18210C #394D1D #5A7A2D #7BA73D #99C45E

Accessibility & contrast

On white

4.93
#5A7A2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#5A7A2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7A2D
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7A2D#FFFFFF#000000##FFFFFF
##5A7A2D1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807224
Deuteranopia (green-blind)
#7B7033
Tritanopia (blue-blind)
#5D756A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a7a2d;
/* rgb */ color: rgb(90, 122, 45);
/* oklch */ color: oklch(53.8% 0.111 128.7);
Tailwind
colors: {
  custom: {
    50: '#8ba069',
    500: '#5a7a2d',
    950: '#000000',
  },
}
SCSS
$custom: #5a7a2d;
$custom-light: #8ba069;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7a2d",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 45
  },
  "hsl": {
    "h": 84.935,
    "s": 46.108,
    "l": 32.745
  },
  "oklch": {
    "l": 0.53763,
    "c": 0.11135,
    "h": 128.7
  },
  "luminance": 0.16282
}

Semantic roles & 50–950 ramp

primary
#5A7A2D
secondary
#7B59AA
accent
#52D689
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5A7A2D

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

Preview Lab → · Contrast checker → · Palette generator →

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