#5A962B#5A962B

#5A962B is a mid, vivid yellow-green. Relative luminance 0.242; OKLCH L 61.0% C 0.152 H 134.3°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5A962B
RGBrgb(90, 150, 43)
HSLhsl(94, 55%, 38%)
HSVhsv(94, 71%, 59%)
CMYKcmyk(40%, 0%, 71.3%, 41.2%)
CIE-LABlab(56.25, -37.90, 47.92)
CIE-LCHlch(56.25, 61.09, 128.34°)
OKLaboklab(61.01% -0.106 0.1086)
OKLCHoklch(61.01% 0.152 134.3)
XYZxyz(15.5585, 24.1600, 6.1286)
Luminance0.2416 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A962B #672B96
analogous
#8F962B #5A962B #2B9632
triadic
#5A962B #2B5A96 #962B5A
tetradic
#5A962B #2B8F96 #672B96 #96322B
square
#5A962B #2B8F96 #672B96 #96322B
split-complementary
#5A962B #322B96 #962B8F
monochromatic
#213710 #3D661D #5A962B #77C639 #97D468

Accessibility & contrast

On white

3.60
#5A962B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#5A962B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A962B
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A962B#FFFFFF#000000##000000
##5A962B1.003.605.835.83
#FFFFFF3.601.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#9C8A1A
Deuteranopia (green-blind)
#948535
Tritanopia (blue-blind)
#599081
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5a962b;
/* rgb */ color: rgb(90, 150, 43);
/* oklch */ color: oklch(61.0% 0.152 134.3);
Tailwind
colors: {
  custom: {
    50: '#8eb56b',
    500: '#5a962b',
    950: '#000000',
  },
}
SCSS
$custom: #5a962b;
$custom-light: #8eb56b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a962b",
  "rgb": {
    "r": 90,
    "g": 150,
    "b": 43
  },
  "hsl": {
    "h": 93.645,
    "s": 55.44,
    "l": 37.843
  },
  "oklch": {
    "l": 0.61009,
    "c": 0.1517,
    "h": 134.3
  },
  "luminance": 0.24161
}

Semantic roles & 50–950 ramp

primary
#5A962B
secondary
#9463BA
accent
#49DF9D
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1107
muted
#7E807A

Preview Lab

Preview with #5A962B

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

Preview Lab → · Contrast checker → · Palette generator →

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