#5A6D2D#5A6D2D

#5A6D2D is a mid, moderate yellow-green. Relative luminance 0.133; OKLCH L 50.4% C 0.092 H 123.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5A6D2D
RGBrgb(90, 109, 45)
HSLhsl(78, 42%, 30%)
HSVhsv(78, 59%, 43%)
CMYKcmyk(17.4%, 0%, 58.7%, 57.3%)
CIE-LABlab(43.21, -17.94, 32.87)
CIE-LCHlch(43.21, 37.45, 118.63°)
OKLaboklab(50.43% -0.0509 0.077)
OKLCHoklch(50.43% 0.092 123.5)
XYZxyz(10.1588, 13.3003, 4.5141)
Luminance0.1330 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6D2D #402D6D
analogous
#6D602D #5A6D2D #3A6D2D
triadic
#5A6D2D #2D5A6D #6D2D5A
tetradic
#5A6D2D #2D6D60 #402D6D #6D2D3A
square
#5A6D2D #2D6D60 #402D6D #6D2D3A
split-complementary
#5A6D2D #2D3A6D #602D6D
monochromatic
#121609 #36421B #5A6D2D #7E983F #9EBB5A

Accessibility & contrast

On white

5.74
#5A6D2D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5A6D2D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6D2D
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6D2D#FFFFFF#000000##FFFFFF
##5A6D2D1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736727
Deuteranopia (green-blind)
#706631
Tritanopia (blue-blind)
#5E685F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a6d2d;
/* rgb */ color: rgb(90, 109, 45);
/* oklch */ color: oklch(50.4% 0.092 123.5);
Tailwind
colors: {
  custom: {
    50: '#8a9768',
    500: '#5a6d2d',
    950: '#000000',
  },
}
SCSS
$custom: #5a6d2d;
$custom-light: #8a9768;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6d2d",
  "rgb": {
    "r": 90,
    "g": 109,
    "b": 45
  },
  "hsl": {
    "h": 77.813,
    "s": 41.558,
    "l": 30.196
  },
  "oklch": {
    "l": 0.50427,
    "c": 0.09228,
    "h": 123.5
  },
  "luminance": 0.133
}

Semantic roles & 50–950 ramp

primary
#5A6D2D
secondary
#6C579F
accent
#56D17B
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0D06
muted
#7D7E7A

Preview Lab

Preview with #5A6D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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