#5A6722#5A6722

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

Color values

HEX#5A6722
RGBrgb(90, 103, 34)
HSLhsl(71, 50%, 27%)
HSVhsv(71, 67%, 40%)
CMYKcmyk(12.6%, 0%, 67%, 59.6%)
CIE-LABlab(41.20, -15.69, 36.05)
CIE-LCHlch(41.20, 39.31, 113.52°)
OKLaboklab(48.77% -0.0458 0.0823)
OKLCHoklch(48.77% 0.094 119.1)
XYZxyz(9.3556, 11.9897, 3.3344)
Luminance0.1199 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6722 #2F2267
analogous
#675222 #5A6722 #386722
triadic
#5A6722 #225A67 #67225A
tetradic
#5A6722 #226752 #2F2267 #672238
square
#5A6722 #226752 #2F2267 #672238
split-complementary
#5A6722 #223867 #522267
monochromatic
#141708 #323913 #5A6722 #829531 #A9C143

Accessibility & contrast

On white

6.18
#5A6722 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A6722
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6722#FFFFFF#000000##FFFFFF
##5A67221.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6119
Deuteranopia (green-blind)
#6C6127
Tritanopia (blue-blind)
#5F6159
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a6722;
/* rgb */ color: rgb(90, 103, 34);
/* oklch */ color: oklch(48.8% 0.094 119.1);
Tailwind
colors: {
  custom: {
    50: '#8b9261',
    500: '#5a6722',
    950: '#000000',
  },
}
SCSS
$custom: #5a6722;
$custom-light: #8b9261;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6722",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 34
  },
  "hsl": {
    "h": 71.304,
    "s": 50.365,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48771,
    "c": 0.09417,
    "h": 119.1
  },
  "luminance": 0.1199
}

Semantic roles & 50–950 ramp

primary
#5A6722
secondary
#594A9B
accent
#4EDA68
background
#F8F8F5
surface
#F0F0EA
border
#CBCBC6
text
#0C0D05
muted
#7D7D79

Preview Lab

Preview with #5A6722

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

Preview Lab → · Contrast checker → · Palette generator →

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