#5A951C#5A951C

#5A951C is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 60.6% C 0.159 H 132.9°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5A951C
RGBrgb(90, 149, 28)
HSLhsl(89, 68%, 35%)
HSVhsv(89, 81%, 58%)
CMYKcmyk(39.6%, 0%, 81.2%, 41.6%)
CIE-LABlab(55.84, -38.41, 52.80)
CIE-LCHlch(55.84, 65.29, 126.03°)
OKLaboklab(60.65% -0.1084 0.1165)
OKLCHoklch(60.65% 0.159 132.9)
XYZxyz(15.1733, 23.7517, 4.8834)
Luminance0.2375 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A951C #571C95
analogous
#95941C #5A951C #1E951C
triadic
#5A951C #1C5A95 #951C5A
tetradic
#5A951C #1C9594 #571C95 #951C1E
square
#5A951C #1C9594 #571C95 #951C1E
split-complementary
#5A951C #1C1E95 #941C95
monochromatic
#1C2E09 #3B6112 #5A951C #79C926 #97DE4E

Accessibility & contrast

On white

3.65
#5A951C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#5A951C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A951C
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A951C#FFFFFF#000000##000000
##5A951C1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#93842A
Tritanopia (blue-blind)
#5A8F7F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a951c;
/* rgb */ color: rgb(90, 149, 28);
/* oklch */ color: oklch(60.6% 0.159 132.9);
Tailwind
colors: {
  custom: {
    50: '#8eb464',
    500: '#5a951c',
    950: '#000000',
  },
}
SCSS
$custom: #5a951c;
$custom-light: #8eb464;
$custom-dark: #000000;
JSON
{
  "hex": "#5a951c",
  "rgb": {
    "r": 90,
    "g": 149,
    "b": 28
  },
  "hsl": {
    "h": 89.256,
    "s": 68.362,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60645,
    "c": 0.15913,
    "h": 132.9
  },
  "luminance": 0.23752
}

Semantic roles & 50–950 ramp

primary
#5A951C
secondary
#854DC0
accent
#3DEB92
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A951C

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

Preview Lab → · Contrast checker → · Palette generator →

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