#5A7A1C#5A7A1C

#5A7A1C is a mid, vivid yellow-green. Relative luminance 0.162; OKLCH L 53.6% C 0.124 H 126.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5A7A1C
RGBrgb(90, 122, 28)
HSLhsl(80, 63%, 29%)
HSVhsv(80, 77%, 48%)
CMYKcmyk(26.2%, 0%, 77%, 52.2%)
CIE-LABlab(47.21, -25.96, 44.66)
CIE-LCHlch(47.21, 51.66, 120.17°)
OKLaboklab(53.61% -0.0747 0.0994)
OKLCHoklch(53.61% 0.124 126.9)
XYZxyz(11.3856, 16.1764, 3.6209)
Luminance0.1618 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7A1C #3C1C7A
analogous
#7A6B1C #5A7A1C #2B7A1C
triadic
#5A7A1C #1C5A7A #7A1C5A
tetradic
#5A7A1C #1C7A6B #3C1C7A #7A1C2B
square
#5A7A1C #1C7A6B #3C1C7A #7A1C2B
split-complementary
#5A7A1C #1C2B7A #6B1C7A
monochromatic
#121906 #354811 #5A7A1C #7FAC27 #A0D33E

Accessibility & contrast

On white

4.96
#5A7A1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#5A7A1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7A1C
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7A1C#FFFFFF#000000##FFFFFF
##5A7A1C1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817108
Deuteranopia (green-blind)
#7C6F25
Tritanopia (blue-blind)
#5E7468
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5a7a1c;
/* rgb */ color: rgb(90, 122, 28);
/* oklch */ color: oklch(53.6% 0.124 126.9);
Tailwind
colors: {
  custom: {
    50: '#8ca060',
    500: '#5a7a1c',
    950: '#000000',
  },
}
SCSS
$custom: #5a7a1c;
$custom-light: #8ca060;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7a1c",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 28
  },
  "hsl": {
    "h": 80.426,
    "s": 62.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53608,
    "c": 0.12433,
    "h": 126.9
  },
  "luminance": 0.16177
}

Semantic roles & 50–950 ramp

primary
#5A7A1C
secondary
#6844AE
accent
#42E67A
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A7A1C

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

Preview Lab → · Contrast checker → · Palette generator →

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