#5A7B14#5A7B14

#5A7B14 is a mid, vivid yellow-green. Relative luminance 0.164; OKLCH L 53.8% C 0.130 H 126.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5A7B14
RGBrgb(90, 123, 20)
HSLhsl(79, 72%, 28%)
HSVhsv(79, 84%, 48%)
CMYKcmyk(26.8%, 0%, 83.7%, 51.8%)
CIE-LABlab(47.48, -26.86, 47.58)
CIE-LCHlch(47.48, 54.64, 119.45°)
OKLaboklab(53.82% -0.0778 0.1042)
OKLCHoklch(53.82% 0.13 126.8)
XYZxyz(11.4257, 16.3899, 3.2233)
Luminance0.1639 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7B14 #35147B
analogous
#7B6814 #5A7B14 #277B14
triadic
#5A7B14 #145A7B #7B145A
tetradic
#5A7B14 #147B68 #35147B #7B1427
square
#5A7B14 #147B68 #35147B #7B1427
split-complementary
#5A7B14 #14277B #68147B
monochromatic
#131A04 #33460B #5A7B14 #81B01D #A4DD2D

Accessibility & contrast

On white

4.91
#5A7B14 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A7B14
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7B14#FFFFFF#000000##FFFFFF
##5A7B141.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#7D7020
Tritanopia (blue-blind)
#5E7568
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a7b14;
/* rgb */ color: rgb(90, 123, 20);
/* oklch */ color: oklch(53.8% 0.130 126.8);
Tailwind
colors: {
  custom: {
    50: '#8ca15c',
    500: '#5a7b14',
    950: '#000000',
  },
}
SCSS
$custom: #5a7b14;
$custom-light: #8ca15c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7b14",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 20
  },
  "hsl": {
    "h": 79.223,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53819,
    "c": 0.13,
    "h": 126.8
  },
  "luminance": 0.1639
}

Semantic roles & 50–950 ramp

primary
#5A7B14
secondary
#603AB1
accent
#39EF73
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0F04
muted
#7D7E79

Preview Lab

Preview with #5A7B14

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

Preview Lab → · Contrast checker → · Palette generator →

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