#5A802D#5A802D

#5A802D is a mid, moderate yellow-green. Relative luminance 0.178; OKLCH L 55.3% C 0.120 H 130.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5A802D
RGBrgb(90, 128, 45)
HSLhsl(87, 48%, 34%)
HSVhsv(87, 65%, 50%)
CMYKcmyk(29.7%, 0%, 64.8%, 49.8%)
CIE-LABlab(49.25, -27.61, 39.65)
CIE-LCHlch(49.25, 48.32, 124.86°)
OKLaboklab(55.31% -0.0777 0.0914)
OKLCHoklch(55.31% 0.12 130.4)
XYZxyz(12.4092, 17.8011, 5.2643)
Luminance0.1780 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A802D #532D80
analogous
#807D2D #5A802D #31802D
triadic
#5A802D #2D5A80 #802D5A
tetradic
#5A802D #2D807D #532D80 #802D31
square
#5A802D #2D807D #532D80 #802D31
split-complementary
#5A802D #2D3180 #7D2D80
monochromatic
#1A250D #3A531D #5A802D #7AAD3D #98C760

Accessibility & contrast

On white

4.61
#5A802D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#5A802D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A802D
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A802D#FFFFFF#000000##FFFFFF
##5A802D1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867723
Deuteranopia (green-blind)
#807433
Tritanopia (blue-blind)
#5C7B6F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a802d;
/* rgb */ color: rgb(90, 128, 45);
/* oklch */ color: oklch(55.3% 0.120 130.4);
Tailwind
colors: {
  custom: {
    50: '#8ba56a',
    500: '#5a802d',
    950: '#000000',
  },
}
SCSS
$custom: #5a802d;
$custom-light: #8ba56a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a802d",
  "rgb": {
    "r": 90,
    "g": 128,
    "b": 45
  },
  "hsl": {
    "h": 87.47,
    "s": 47.977,
    "l": 33.922
  },
  "oklch": {
    "l": 0.55314,
    "c": 0.11999,
    "h": 130.4
  },
  "luminance": 0.17801
}

Semantic roles & 50–950 ramp

primary
#5A802D
secondary
#815BAE
accent
#50D88E
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F07
muted
#7D7F7A

Preview Lab

Preview with #5A802D

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

Preview Lab → · Contrast checker → · Palette generator →

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