#5A791D#5A791D

#5A791D is a mid, vivid yellow-green. Relative luminance 0.159; OKLCH L 53.4% C 0.122 H 126.7°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#5A791D
RGBrgb(90, 121, 29)
HSLhsl(80, 61%, 29%)
HSVhsv(80, 76%, 47%)
CMYKcmyk(25.6%, 0%, 76%, 52.5%)
CIE-LABlab(46.89, -25.40, 43.98)
CIE-LCHlch(46.89, 50.79, 120.01°)
OKLaboklab(53.36% -0.0731 0.0981)
OKLCHoklch(53.36% 0.122 126.7)
XYZxyz(11.2756, 15.9369, 3.6442)
Luminance0.1594 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A791D #3C1D79
analogous
#796A1D #5A791D #2C791D
triadic
#5A791D #1D5A79 #791D5A
tetradic
#5A791D #1D796A #3C1D79 #791D2C
square
#5A791D #1D796A #3C1D79 #791D2C
split-complementary
#5A791D #1D2C79 #6A1D79
monochromatic
#121906 #354811 #5A791D #7FAA29 #A0D13F

Accessibility & contrast

On white

5.02
#5A791D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5A791D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A791D
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A791D#FFFFFF#000000##FFFFFF
##5A791D1.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80700B
Deuteranopia (green-blind)
#7B6F25
Tritanopia (blue-blind)
#5E7367
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5a791d;
/* rgb */ color: rgb(90, 121, 29);
/* oklch */ color: oklch(53.4% 0.122 126.7);
Tailwind
colors: {
  custom: {
    50: '#8ca060',
    500: '#5a791d',
    950: '#000000',
  },
}
SCSS
$custom: #5a791d;
$custom-light: #8ca060;
$custom-dark: #000000;
JSON
{
  "hex": "#5a791d",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 29
  },
  "hsl": {
    "h": 80.217,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.53355,
    "c": 0.12237,
    "h": 126.7
  },
  "luminance": 0.15937
}

Semantic roles & 50–950 ramp

primary
#5A791D
secondary
#6845AD
accent
#43E47A
background
#F8F9F5
surface
#F0F2EA
border
#CBCCC6
text
#0C0E05
muted
#7D7E79

Preview Lab

Preview with #5A791D

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

Preview Lab → · Contrast checker → · Palette generator →

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