#5A941C#5A941C

#5A941C is a mid, vivid yellow-green. Relative luminance 0.234; OKLCH L 60.4% C 0.158 H 132.8°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5A941C
RGBrgb(90, 148, 28)
HSLhsl(89, 68%, 35%)
HSVhsv(89, 81%, 58%)
CMYKcmyk(39.2%, 0%, 81.1%, 42%)
CIE-LABlab(55.52, -37.98, 52.51)
CIE-LCHlch(55.52, 64.80, 125.88°)
OKLaboklab(60.38% -0.1073 0.1159)
OKLCHoklch(60.38% 0.158 132.8)
XYZxyz(15.0158, 23.4366, 4.8309)
Luminance0.2344 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A941C #561C94
analogous
#94921C #5A941C #1E941C
triadic
#5A941C #1C5A94 #941C5A
tetradic
#5A941C #1C9492 #561C94 #941C1E
square
#5A941C #1C9492 #561C94 #941C1E
split-complementary
#5A941C #1C1E94 #921C94
monochromatic
#1B2D09 #3B6112 #5A941C #79C726 #98DD4D

Accessibility & contrast

On white

3.69
#5A941C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#5A941C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A941C
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A941C#FFFFFF#000000##000000
##5A941C1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8800
Deuteranopia (green-blind)
#93832A
Tritanopia (blue-blind)
#5B8E7E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5a941c;
/* rgb */ color: rgb(90, 148, 28);
/* oklch */ color: oklch(60.4% 0.158 132.8);
Tailwind
colors: {
  custom: {
    50: '#8eb463',
    500: '#5a941c',
    950: '#000000',
  },
}
SCSS
$custom: #5a941c;
$custom-light: #8eb463;
$custom-dark: #000000;
JSON
{
  "hex": "#5a941c",
  "rgb": {
    "r": 90,
    "g": 148,
    "b": 28
  },
  "hsl": {
    "h": 89,
    "s": 68.182,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60384,
    "c": 0.15789,
    "h": 132.8
  },
  "luminance": 0.23437
}

Semantic roles & 50–950 ramp

primary
#5A941C
secondary
#844CC0
accent
#3DEB91
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A941C

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

Preview Lab → · Contrast checker → · Palette generator →

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