#5A901C#5A901C

#5A901C is a mid, vivid yellow-green. Relative luminance 0.222; OKLCH L 59.3% C 0.153 H 132.1°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5A901C
RGBrgb(90, 144, 28)
HSLhsl(88, 67%, 34%)
HSVhsv(88, 81%, 56%)
CMYKcmyk(37.5%, 0%, 80.6%, 43.5%)
CIE-LABlab(54.24, -36.22, 51.32)
CIE-LCHlch(54.24, 62.82, 125.21°)
OKLaboklab(59.34% -0.1025 0.1134)
OKLCHoklch(59.34% 0.153 132.1)
XYZxyz(14.3991, 22.2034, 4.6254)
Luminance0.2220 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A901C #521C90
analogous
#908C1C #5A901C #20901C
triadic
#5A901C #1C5A90 #901C5A
tetradic
#5A901C #1C908C #521C90 #901C20
square
#5A901C #1C908C #521C90 #901C20
split-complementary
#5A901C #1C2090 #8C1C90
monochromatic
#1A2A08 #3A5D12 #5A901C #7AC326 #98DC4A

Accessibility & contrast

On white

3.86
#5A901C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#5A901C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A901C
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A901C#FFFFFF#000000##000000
##5A901C1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#8F8029
Tritanopia (blue-blind)
#5B8A7B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a901c;
/* rgb */ color: rgb(90, 144, 28);
/* oklch */ color: oklch(59.3% 0.153 132.1);
Tailwind
colors: {
  custom: {
    50: '#8eb163',
    500: '#5a901c',
    950: '#000000',
  },
}
SCSS
$custom: #5a901c;
$custom-light: #8eb163;
$custom-dark: #000000;
JSON
{
  "hex": "#5a901c",
  "rgb": {
    "r": 90,
    "g": 144,
    "b": 28
  },
  "hsl": {
    "h": 87.931,
    "s": 67.442,
    "l": 33.725
  },
  "oklch": {
    "l": 0.5934,
    "c": 0.15286,
    "h": 132.1
  },
  "luminance": 0.22204
}

Semantic roles & 50–950 ramp

primary
#5A901C
secondary
#804ABE
accent
#3DEA8E
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A901C

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

Preview Lab → · Contrast checker → · Palette generator →

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