#5A8A2B#5A8A2B

#5A8A2B is a mid, vivid yellow-green. Relative luminance 0.205; OKLCH L 57.9% C 0.136 H 132.3°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5A8A2B
RGBrgb(90, 138, 43)
HSLhsl(90, 52%, 35%)
HSVhsv(90, 69%, 54%)
CMYKcmyk(34.8%, 0%, 68.8%, 45.9%)
CIE-LABlab(52.43, -32.52, 43.94)
CIE-LCHlch(52.43, 54.66, 126.50°)
OKLaboklab(57.89% -0.0913 0.1002)
OKLCHoklch(57.89% 0.136 132.3)
XYZxyz(13.7408, 20.5245, 5.5227)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A2B #5B2B8A
analogous
#898A2B #5A8A2B #2B8A2C
triadic
#5A8A2B #2B5A8A #8A2B5A
tetradic
#5A8A2B #2B898A #5B2B8A #8A2C2B
square
#5A8A2B #2B898A #5B2B8A #8A2C2B
split-complementary
#5A8A2B #2C2B8A #8A2B89
monochromatic
#1D2D0E #3C5B1C #5A8A2B #78B93A #97CE61

Accessibility & contrast

On white

4.11
#5A8A2B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#5A8A2B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A8A2B
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A8A2B#FFFFFF#000000##000000
##5A8A2B1.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F1E
Deuteranopia (green-blind)
#897C33
Tritanopia (blue-blind)
#5B8477
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a2b;
/* rgb */ color: rgb(90, 138, 43);
/* oklch */ color: oklch(57.9% 0.136 132.3);
Tailwind
colors: {
  custom: {
    50: '#8cac6a',
    500: '#5a8a2b',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a2b;
$custom-light: #8cac6a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a2b",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 43
  },
  "hsl": {
    "h": 90.316,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.57888,
    "c": 0.13558,
    "h": 132.3
  },
  "luminance": 0.20525
}

Semantic roles & 50–950 ramp

primary
#5A8A2B
secondary
#895DB4
accent
#4CDC95
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5A8A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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