#5A6726#5A6726

#5A6726 is a mid, moderate yellow-green. Relative luminance 0.120; OKLCH L 48.8% C 0.091 H 119.4°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#5A6726
RGBrgb(90, 103, 38)
HSLhsl(72, 46%, 28%)
HSVhsv(72, 63%, 40%)
CMYKcmyk(12.6%, 0%, 63.1%, 59.6%)
CIE-LABlab(41.24, -15.36, 34.16)
CIE-LCHlch(41.24, 37.46, 114.20°)
OKLaboklab(48.81% -0.0445 0.0789)
OKLCHoklch(48.81% 0.091 119.4)
XYZxyz(9.4167, 12.0141, 3.6562)
Luminance0.1201 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6726 #332667
analogous
#675326 #5A6726 #396726
triadic
#5A6726 #265A67 #67265A
tetradic
#5A6726 #266753 #332667 #672639
square
#5A6726 #266753 #332667 #672639
split-complementary
#5A6726 #263967 #532667
monochromatic
#141608 #333A16 #5A6726 #819436 #A6BD4B

Accessibility & contrast

On white

6.17
#5A6726 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#5A6726 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6726
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6726#FFFFFF#000000##FFFFFF
##5A67261.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D611F
Deuteranopia (green-blind)
#6C612A
Tritanopia (blue-blind)
#5F6259
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a6726;
/* rgb */ color: rgb(90, 103, 38);
/* oklch */ color: oklch(48.8% 0.091 119.4);
Tailwind
colors: {
  custom: {
    50: '#8a9263',
    500: '#5a6726',
    950: '#000000',
  },
}
SCSS
$custom: #5a6726;
$custom-light: #8a9263;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6726",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 38
  },
  "hsl": {
    "h": 72,
    "s": 46.099,
    "l": 27.647
  },
  "oklch": {
    "l": 0.48814,
    "c": 0.09052,
    "h": 119.4
  },
  "luminance": 0.12014
}

Semantic roles & 50–950 ramp

primary
#5A6726
secondary
#5E4F9A
accent
#52D66C
background
#F8F8F6
surface
#F0F0EB
border
#CBCBC6
text
#0C0D05
muted
#7D7D7A

Preview Lab

Preview with #5A6726

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

Preview Lab → · Contrast checker → · Palette generator →

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