#5A802B#5A802B

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

Color values

HEX#5A802B
RGBrgb(90, 128, 43)
HSLhsl(87, 50%, 34%)
HSVhsv(87, 66%, 50%)
CMYKcmyk(29.7%, 0%, 66.4%, 49.8%)
CIE-LABlab(49.24, -27.79, 40.54)
CIE-LCHlch(49.24, 49.15, 124.43°)
OKLaboklab(55.29% -0.0784 0.093)
OKLCHoklch(55.29% 0.122 130.1)
XYZxyz(12.3716, 17.7861, 5.0663)
Luminance0.1779 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A802B #512B80
analogous
#807B2B #5A802B #2F802B
triadic
#5A802B #2B5A80 #802B5A
tetradic
#5A802B #2B807B #512B80 #802B2F
square
#5A802B #2B807B #512B80 #802B2F
split-complementary
#5A802B #2B2F80 #7B2B80
monochromatic
#1A240C #3A521C #5A802B #7AAE3A #98C95D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A802B#FFFFFF#000000##FFFFFF
##5A802B1.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)
#867720
Deuteranopia (green-blind)
#817432
Tritanopia (blue-blind)
#5C7B6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a802b;
/* rgb */ color: rgb(90, 128, 43);
/* oklch */ color: oklch(55.3% 0.122 130.1);
Tailwind
colors: {
  custom: {
    50: '#8ca569',
    500: '#5a802b',
    950: '#000000',
  },
}
SCSS
$custom: #5a802b;
$custom-light: #8ca569;
$custom-dark: #000000;
JSON
{
  "hex": "#5a802b",
  "rgb": {
    "r": 90,
    "g": 128,
    "b": 43
  },
  "hsl": {
    "h": 86.824,
    "s": 49.708,
    "l": 33.529
  },
  "oklch": {
    "l": 0.55293,
    "c": 0.12167,
    "h": 130.1
  },
  "luminance": 0.17786
}

Semantic roles & 50–950 ramp

primary
#5A802B
secondary
#7F58AE
accent
#4FD98D
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C0F06
muted
#7D7F7A

Preview Lab

Preview with #5A802B

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

Preview Lab → · Contrast checker → · Palette generator →

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