#5A7B1C#5A7B1C

#5A7B1C is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.9% C 0.126 H 127.2°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5A7B1C
RGBrgb(90, 123, 28)
HSLhsl(81, 63%, 30%)
HSVhsv(81, 77%, 48%)
CMYKcmyk(26.8%, 0%, 77.2%, 51.8%)
CIE-LABlab(47.52, -26.45, 44.97)
CIE-LCHlch(47.52, 52.17, 120.46°)
OKLaboklab(53.87% -0.0761 0.1)
OKLCHoklch(53.87% 0.126 127.2)
XYZxyz(11.5090, 16.4232, 3.6620)
Luminance0.1642 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7B1C #3D1C7B
analogous
#7B6D1C #5A7B1C #2B7B1C
triadic
#5A7B1C #1C5A7B #7B1C5A
tetradic
#5A7B1C #1C7B6D #3D1C7B #7B1C2B
square
#5A7B1C #1C7B6D #3D1C7B #7B1C2B
split-complementary
#5A7B1C #1C2B7B #6D1C7B
monochromatic
#121906 #364911 #5A7B1C #7EAD27 #9FD33E

Accessibility & contrast

On white

4.90
#5A7B1C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#5A7B1C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7B1C
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7B1C#FFFFFF#000000##FFFFFF
##5A7B1C1.004.904.284.90
#FFFFFF4.901.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827208
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#5E7569
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a7b1c;
/* rgb */ color: rgb(90, 123, 28);
/* oklch */ color: oklch(53.9% 0.126 127.2);
Tailwind
colors: {
  custom: {
    50: '#8ca160',
    500: '#5a7b1c',
    950: '#000000',
  },
}
SCSS
$custom: #5a7b1c;
$custom-light: #8ca160;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7b1c",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 28
  },
  "hsl": {
    "h": 80.842,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.53867,
    "c": 0.12566,
    "h": 127.2
  },
  "luminance": 0.16423
}

Semantic roles & 50–950 ramp

primary
#5A7B1C
secondary
#6944AF
accent
#42E67B
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5A7B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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