#5A6740#5A6740

#5A6740 is a mid, moderate yellow-green. Relative luminance 0.122; OKLCH L 49.2% C 0.061 H 123.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5A6740
RGBrgb(90, 103, 64)
HSLhsl(80, 23%, 33%)
HSVhsv(80, 38%, 40%)
CMYKcmyk(12.6%, 0%, 37.9%, 59.6%)
CIE-LABlab(41.60, -12.30, 20.41)
CIE-LCHlch(41.60, 23.83, 121.09°)
OKLaboklab(49.22% -0.0335 0.0505)
OKLCHoklch(49.22% 0.061 123.6)
XYZxyz(9.9920, 12.2443, 6.6865)
Luminance0.1224 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6740 #4D4067
analogous
#676040 #5A6740 #466740
triadic
#5A6740 #405A67 #67405A
tetradic
#5A6740 #406760 #4D4067 #674046
square
#5A6740 #406760 #4D4067 #674046
split-complementary
#5A6740 #404667 #604067
monochromatic
#181C11 #394129 #5A6740 #7B8D57 #99AA77

Accessibility & contrast

On white

6.09
#5A6740 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5A6740 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6740
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6740#FFFFFF#000000##FFFFFF
##5A67401.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6B623D
Deuteranopia (green-blind)
#696242
Tritanopia (blue-blind)
#5D635D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6740;
/* rgb */ color: rgb(90, 103, 64);
/* oklch */ color: oklch(49.2% 0.061 123.6);
Tailwind
colors: {
  custom: {
    50: '#899275',
    500: '#5a6740',
    950: '#000000',
  },
}
SCSS
$custom: #5a6740;
$custom-light: #899275;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6740",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 64
  },
  "hsl": {
    "h": 80,
    "s": 23.353,
    "l": 32.745
  },
  "oklch": {
    "l": 0.49223,
    "c": 0.0606,
    "h": 123.6
  },
  "luminance": 0.12244
}

Semantic roles & 50–950 ramp

primary
#5A6740
secondary
#7B6D96
accent
#68C085
background
#F8F8F7
surface
#F0F0ED
border
#CBCBC8
text
#0B0D08
muted
#7C7D7B

Preview Lab

Preview with #5A6740

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

Preview Lab → · Contrast checker → · Palette generator →

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