#5A7629#5A7629

#5A7629 is a mid, moderate yellow-green. Relative luminance 0.153; OKLCH L 52.7% C 0.109 H 126.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5A7629
RGBrgb(90, 118, 41)
HSLhsl(82, 48%, 31%)
HSVhsv(82, 65%, 46%)
CMYKcmyk(23.7%, 0%, 65.3%, 53.7%)
CIE-LABlab(46.03, -23.01, 37.98)
CIE-LCHlch(46.03, 44.41, 121.20°)
OKLaboklab(52.69% -0.0654 0.0874)
OKLCHoklch(52.69% 0.109 126.8)
XYZxyz(11.0951, 15.2904, 4.4642)
Luminance0.1529 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7629 #452976
analogous
#766B29 #5A7629 #337629
triadic
#5A7629 #295A76 #76295A
tetradic
#5A7629 #29766B #452976 #762933
square
#5A7629 #29766B #452976 #762933
split-complementary
#5A7629 #293376 #6B2976
monochromatic
#151B09 #374919 #5A7629 #7DA339 #9CC455

Accessibility & contrast

On white

5.17
#5A7629 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#5A7629 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7629
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7629#FFFFFF#000000##FFFFFF
##5A76291.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E20
Deuteranopia (green-blind)
#786D2F
Tritanopia (blue-blind)
#5D7166
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5a7629;
/* rgb */ color: rgb(90, 118, 41);
/* oklch */ color: oklch(52.7% 0.109 126.8);
Tailwind
colors: {
  custom: {
    50: '#8b9d66',
    500: '#5a7629',
    950: '#000000',
  },
}
SCSS
$custom: #5a7629;
$custom-light: #8b9d66;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7629",
  "rgb": {
    "r": 90,
    "g": 118,
    "b": 41
  },
  "hsl": {
    "h": 81.818,
    "s": 48.428,
    "l": 31.176
  },
  "oklch": {
    "l": 0.52687,
    "c": 0.10913,
    "h": 126.8
  },
  "luminance": 0.15291
}

Semantic roles & 50–950 ramp

primary
#5A7629
secondary
#7253A8
accent
#50D881
background
#F8F9F6
surface
#F0F2EB
border
#CBCCC6
text
#0C0E06
muted
#7D7E7A

Preview Lab

Preview with #5A7629

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

Preview Lab → · Contrast checker → · Palette generator →

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