#5A801C#5A801C

#5A801C is a mid, vivid yellow-green. Relative luminance 0.177; OKLCH L 55.2% C 0.132 H 128.7°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5A801C
RGBrgb(90, 128, 28)
HSLhsl(83, 64%, 31%)
HSVhsv(83, 78%, 50%)
CMYKcmyk(29.7%, 0%, 78.1%, 49.8%)
CIE-LABlab(49.12, -28.87, 46.50)
CIE-LCHlch(49.12, 54.74, 121.83°)
OKLaboklab(55.17% -0.0826 0.1033)
OKLCHoklch(55.17% 0.132 128.7)
XYZxyz(12.1452, 17.6955, 3.8741)
Luminance0.1770 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A801C #421C80
analogous
#80741C #5A801C #28801C
triadic
#5A801C #1C5A80 #801C5A
tetradic
#5A801C #1C8074 #421C80 #801C28
square
#5A801C #1C8074 #421C80 #801C28
split-complementary
#5A801C #1C2880 #741C80
monochromatic
#131C06 #374E11 #5A801C #7DB227 #9DD541

Accessibility & contrast

On white

4.63
#5A801C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#5A801C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A801C
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A801C#FFFFFF#000000##FFFFFF
##5A801C1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877605
Deuteranopia (green-blind)
#817426
Tritanopia (blue-blind)
#5D7A6D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a801c;
/* rgb */ color: rgb(90, 128, 28);
/* oklch */ color: oklch(55.2% 0.132 128.7);
Tailwind
colors: {
  custom: {
    50: '#8ca561',
    500: '#5a801c',
    950: '#000000',
  },
}
SCSS
$custom: #5a801c;
$custom-light: #8ca561;
$custom-dark: #000000;
JSON
{
  "hex": "#5a801c",
  "rgb": {
    "r": 90,
    "g": 128,
    "b": 28
  },
  "hsl": {
    "h": 82.8,
    "s": 64.103,
    "l": 30.588
  },
  "oklch": {
    "l": 0.55167,
    "c": 0.13225,
    "h": 128.7
  },
  "luminance": 0.17696
}

Semantic roles & 50–950 ramp

primary
#5A801C
secondary
#6F44B3
accent
#41E780
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A801C

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

Preview Lab → · Contrast checker → · Palette generator →

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