#5A6731#5A6731

#5A6731 is a mid, moderate yellow-green. Relative luminance 0.121; OKLCH L 49.0% C 0.079 H 120.6°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5A6731
RGBrgb(90, 103, 49)
HSLhsl(74, 36%, 30%)
HSVhsv(74, 52%, 40%)
CMYKcmyk(12.6%, 0%, 52.4%, 59.6%)
CIE-LABlab(41.37, -14.25, 28.59)
CIE-LCHlch(41.37, 31.95, 116.50°)
OKLaboklab(48.96% -0.0402 0.0681)
OKLCHoklch(48.96% 0.079 120.6)
XYZxyz(9.6211, 12.0959, 4.7330)
Luminance0.1210 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6731 #3E3167
analogous
#675931 #5A6731 #3F6731
triadic
#5A6731 #315A67 #67315A
tetradic
#5A6731 #316759 #3E3167 #67313F
square
#5A6731 #316759 #3E3167 #67313F
split-complementary
#5A6731 #313F67 #593167
monochromatic
#12150A #363E1D #5A6731 #7E9045 #9FB35F

Accessibility & contrast

On white

6.14
#5A6731 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5A6731 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6731
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6731#FFFFFF#000000##FFFFFF
##5A67311.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6D622C
Deuteranopia (green-blind)
#6B6234
Tritanopia (blue-blind)
#5E625B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a6731;
/* rgb */ color: rgb(90, 103, 49);
/* oklch */ color: oklch(49.0% 0.079 120.6);
Tailwind
colors: {
  custom: {
    50: '#8a926a',
    500: '#5a6731',
    950: '#000000',
  },
}
SCSS
$custom: #5a6731;
$custom-light: #8a926a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6731",
  "rgb": {
    "r": 90,
    "g": 103,
    "b": 49
  },
  "hsl": {
    "h": 74.444,
    "s": 35.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4896,
    "c": 0.07903,
    "h": 120.6
  },
  "luminance": 0.12096
}

Semantic roles & 50–950 ramp

primary
#5A6731
secondary
#6A5C98
accent
#5CCC77
background
#F8F8F6
surface
#F0F0EB
border
#CBCBC6
text
#0C0D06
muted
#7D7D7A

Preview Lab

Preview with #5A6731

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

Preview Lab → · Contrast checker → · Palette generator →

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