#5A7B18#5A7B18

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

Color values

HEX#5A7B18
RGBrgb(90, 123, 24)
HSLhsl(80, 67%, 29%)
HSVhsv(80, 80%, 48%)
CMYKcmyk(26.8%, 0%, 80.5%, 51.8%)
CIE-LABlab(47.50, -26.67, 46.34)
CIE-LCHlch(47.50, 53.47, 119.92°)
OKLaboklab(53.84% -0.077 0.1022)
OKLCHoklch(53.84% 0.128 127)
XYZxyz(11.4643, 16.4053, 3.4265)
Luminance0.1641 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7B18 #39187B
analogous
#7B6B18 #5A7B18 #297B18
triadic
#5A7B18 #185A7B #7B185A
tetradic
#5A7B18 #187B6B #39187B #7B1829
square
#5A7B18 #187B6B #39187B #7B1829
split-complementary
#5A7B18 #18297B #6B187B
monochromatic
#131A05 #35480E #5A7B18 #7FAE22 #A2D836

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A7B18#FFFFFF#000000##FFFFFF
##5A7B181.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)
#7D7022
Tritanopia (blue-blind)
#5E7569
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5a7b18;
/* rgb */ color: rgb(90, 123, 24);
/* oklch */ color: oklch(53.8% 0.128 127.0);
Tailwind
colors: {
  custom: {
    50: '#8ca15e',
    500: '#5a7b18',
    950: '#000000',
  },
}
SCSS
$custom: #5a7b18;
$custom-light: #8ca15e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7b18",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 24
  },
  "hsl": {
    "h": 80,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53841,
    "c": 0.12797,
    "h": 127
  },
  "luminance": 0.16406
}

Semantic roles & 50–950 ramp

primary
#5A7B18
secondary
#653FB0
accent
#3EEA77
background
#F8F9F5
surface
#F0F2E9
border
#CBCCC5
text
#0C0F05
muted
#7D7E79

Preview Lab

Preview with #5A7B18

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

Preview Lab → · Contrast checker → · Palette generator →

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