#5A8A1C#5A8A1C

#5A8A1C is a mid, vivid yellow-green. Relative luminance 0.204; OKLCH L 57.8% C 0.145 H 131.0°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#5A8A1C
RGBrgb(90, 138, 28)
HSLhsl(86, 66%, 33%)
HSVhsv(86, 80%, 54%)
CMYKcmyk(34.8%, 0%, 79.7%, 45.9%)
CIE-LABlab(52.32, -33.53, 49.53)
CIE-LCHlch(52.32, 59.81, 124.10°)
OKLaboklab(57.77% -0.0953 0.1096)
OKLCHoklch(57.77% 0.145 131)
XYZxyz(13.5144, 20.4340, 4.3305)
Luminance0.2043 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A1C #4C1C8A
analogous
#8A831C #5A8A1C #238A1C
triadic
#5A8A1C #1C5A8A #8A1C5A
tetradic
#5A8A1C #1C8A83 #4C1C8A #8A1C23
square
#5A8A1C #1C8A83 #4C1C8A #8A1C23
split-complementary
#5A8A1C #1C238A #831C8A
monochromatic
#182407 #395712 #5A8A1C #7BBD26 #9ADA47

Accessibility & contrast

On white

4.13
#5A8A1C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#5A8A1C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8A1C
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8A1C#FFFFFF#000000##000000
##5A8A1C1.004.135.095.09
#FFFFFF4.131.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F00
Deuteranopia (green-blind)
#8A7C28
Tritanopia (blue-blind)
#5C8476
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a1c;
/* rgb */ color: rgb(90, 138, 28);
/* oklch */ color: oklch(57.8% 0.145 131.0);
Tailwind
colors: {
  custom: {
    50: '#8dac62',
    500: '#5a8a1c',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a1c;
$custom-light: #8dac62;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a1c",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 28
  },
  "hsl": {
    "h": 86.182,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.57774,
    "c": 0.14523,
    "h": 131
  },
  "luminance": 0.20434
}

Semantic roles & 50–950 ramp

primary
#5A8A1C
secondary
#7946BB
accent
#3FE989
background
#F9FAF6
surface
#F1F4EB
border
#CBCEC6
text
#0D1005
muted
#7E7F7A

Preview Lab

Preview with #5A8A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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