#5A7C1C#5A7C1C

#5A7C1C is a mid, vivid yellow-green. Relative luminance 0.167; OKLCH L 54.1% C 0.127 H 127.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#5A7C1C
RGBrgb(90, 124, 28)
HSLhsl(81, 63%, 30%)
HSVhsv(81, 77%, 49%)
CMYKcmyk(27.4%, 0%, 77.4%, 51.4%)
CIE-LABlab(47.84, -26.94, 45.28)
CIE-LCHlch(47.84, 52.68, 120.75°)
OKLaboklab(54.13% -0.0774 0.1007)
OKLCHoklch(54.13% 0.127 127.5)
XYZxyz(11.6337, 16.6726, 3.7036)
Luminance0.1667 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7C1C #3E1C7C
analogous
#7C6E1C #5A7C1C #2A7C1C
triadic
#5A7C1C #1C5A7C #7C1C5A
tetradic
#5A7C1C #1C7C6E #3E1C7C #7C1C2A
square
#5A7C1C #1C7C6E #3E1C7C #7C1C2A
split-complementary
#5A7C1C #1C2A7C #6E1C7C
monochromatic
#121906 #364A11 #5A7C1C #7EAE27 #9FD43F

Accessibility & contrast

On white

4.84
#5A7C1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#5A7C1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7C1C
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7C1C#FFFFFF#000000##FFFFFF
##5A7C1C1.004.844.334.84
#FFFFFF4.841.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837307
Deuteranopia (green-blind)
#7E7125
Tritanopia (blue-blind)
#5E766A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a7c1c;
/* rgb */ color: rgb(90, 124, 28);
/* oklch */ color: oklch(54.1% 0.127 127.5);
Tailwind
colors: {
  custom: {
    50: '#8ca260',
    500: '#5a7c1c',
    950: '#000000',
  },
}
SCSS
$custom: #5a7c1c;
$custom-light: #8ca260;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7c1c",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 28
  },
  "hsl": {
    "h": 81.25,
    "s": 63.158,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54127,
    "c": 0.12699,
    "h": 127.5
  },
  "luminance": 0.16673
}

Semantic roles & 50–950 ramp

primary
#5A7C1C
secondary
#6A44B0
accent
#42E67C
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5A7C1C

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

Preview Lab → · Contrast checker → · Palette generator →

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