#5A8A2A#5A8A2A

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

Color values

HEX#5A8A2A
RGBrgb(90, 138, 42)
HSLhsl(90, 53%, 35%)
HSVhsv(90, 70%, 54%)
CMYKcmyk(34.8%, 0%, 69.6%, 45.9%)
CIE-LABlab(52.42, -32.60, 44.36)
CIE-LCHlch(52.42, 55.05, 126.31°)
OKLaboklab(57.88% -0.0916 0.1009)
OKLCHoklch(57.88% 0.136 132.2)
XYZxyz(13.7227, 20.5173, 5.4272)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A8A2A #5A2A8A
analogous
#8A8A2A #5A8A2A #2A8A2A
triadic
#5A8A2A #2A5A8A #8A2A5A
tetradic
#5A8A2A #2A8A8A #5A2A8A #8A2A2A
square
#5A8A2A #2A8A8A #5A2A8A #8A2A2A
split-complementary
#5A8A2A #2A2A8A #8A2A8A
monochromatic
#1D2C0D #3B5B1C #5A8A2A #79B938 #97CF60

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A8A2A#FFFFFF#000000##000000
##5A8A2A1.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)
#907F1C
Deuteranopia (green-blind)
#897C32
Tritanopia (blue-blind)
#5B8477
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5a8a2a;
/* rgb */ color: rgb(90, 138, 42);
/* oklch */ color: oklch(57.9% 0.136 132.2);
Tailwind
colors: {
  custom: {
    50: '#8cac69',
    500: '#5a8a2a',
    950: '#000000',
  },
}
SCSS
$custom: #5a8a2a;
$custom-light: #8cac69;
$custom-dark: #000000;
JSON
{
  "hex": "#5a8a2a",
  "rgb": {
    "r": 90,
    "g": 138,
    "b": 42
  },
  "hsl": {
    "h": 90,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.57879,
    "c": 0.13632,
    "h": 132.2
  },
  "luminance": 0.20518
}

Semantic roles & 50–950 ramp

primary
#5A8A2A
secondary
#885BB4
accent
#4BDD94
background
#F8FAF6
surface
#F0F4EB
border
#CBCEC6
text
#0C1007
muted
#7D7F7A

Preview Lab

Preview with #5A8A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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