#5A6721#5A6721

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

Color values

HEX#5A6721
RGBrgb(90, 103, 33)
HSLhsl(71, 51%, 27%)
HSVhsv(71, 68%, 40%)
CMYKcmyk(12.6%, 0%, 68%, 59.6%)
CIE-LABlab(41.19, -15.77, 36.50)
CIE-LCHlch(41.19, 39.76, 113.36°)
OKLaboklab(48.76% -0.0461 0.0831)
OKLCHoklch(48.76% 0.095 119.1)
XYZxyz(9.3414, 11.9840, 3.2596)
Luminance0.1198 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6721 #2E2167
analogous
#675121 #5A6721 #376721
triadic
#5A6721 #215A67 #67215A
tetradic
#5A6721 #216751 #2E2167 #672137
square
#5A6721 #216751 #2E2167 #672137
split-complementary
#5A6721 #213767 #512167
monochromatic
#141707 #323912 #5A6721 #839530 #AAC240

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A6721#FFFFFF#000000##FFFFFF
##5A67211.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)
#6E6118
Deuteranopia (green-blind)
#6C6126
Tritanopia (blue-blind)
#5F6159
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a6721;
/* rgb */ color: rgb(90, 103, 33);
/* oklch */ color: oklch(48.8% 0.095 119.1);
Tailwind
colors: {
  custom: {
    50: '#8b9260',
    500: '#5a6721',
    950: '#000000',
  },
}
SCSS
$custom: #5a6721;
$custom-light: #8b9260;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6721",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 33
  },
  "hsl": {
    "h": 71.143,
    "s": 51.471,
    "l": 26.667
  },
  "oklch": {
    "l": 0.48761,
    "c": 0.09504,
    "h": 119.1
  },
  "luminance": 0.11984
}

Semantic roles & 50–950 ramp

primary
#5A6721
secondary
#58499B
accent
#4DDB67
background
#F8F8F5
surface
#F0F0EA
border
#CBCBC6
text
#0C0D05
muted
#7D7D79

Preview Lab

Preview with #5A6721

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

Preview Lab → · Contrast checker → · Palette generator →

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