#5A7F19#5A7F19

#5A7F19 is a mid, vivid yellow-green. Relative luminance 0.174; OKLCH L 54.9% C 0.133 H 128.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5A7F19
RGBrgb(90, 127, 25)
HSLhsl(82, 67%, 30%)
HSVhsv(82, 80%, 50%)
CMYKcmyk(29.1%, 0%, 80.3%, 50.2%)
CIE-LABlab(48.79, -28.56, 47.21)
CIE-LCHlch(48.79, 55.17, 121.17°)
OKLaboklab(54.89% -0.082 0.1042)
OKLCHoklch(54.89% 0.133 128.2)
XYZxyz(11.9813, 17.4223, 3.6511)
Luminance0.1742 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7F19 #3E197F
analogous
#7F7119 #5A7F19 #277F19
triadic
#5A7F19 #195A7F #7F195A
tetradic
#5A7F19 #197F71 #3E197F #7F1927
square
#5A7F19 #197F71 #3E197F #7F1927
split-complementary
#5A7F19 #19277F #71197F
monochromatic
#121A05 #364C0F #5A7F19 #7EB223 #9FD83A

Accessibility & contrast

On white

4.68
#5A7F19 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#5A7F19 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A7F19
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7F19#FFFFFF#000000##FFFFFF
##5A7F191.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#867600
Deuteranopia (green-blind)
#817324
Tritanopia (blue-blind)
#5D796C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5a7f19;
/* rgb */ color: rgb(90, 127, 25);
/* oklch */ color: oklch(54.9% 0.133 128.2);
Tailwind
colors: {
  custom: {
    50: '#8ca45f',
    500: '#5a7f19',
    950: '#000000',
  },
}
SCSS
$custom: #5a7f19;
$custom-light: #8ca45f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7f19",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 25
  },
  "hsl": {
    "h": 81.765,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.54888,
    "c": 0.13263,
    "h": 128.2
  },
  "luminance": 0.17423
}

Semantic roles & 50–950 ramp

primary
#5A7F19
secondary
#6A41B3
accent
#3EEA7C
background
#F8FAF5
surface
#F0F4EA
border
#CBCEC6
text
#0C0F05
muted
#7D7F79

Preview Lab

Preview with #5A7F19

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

Preview Lab → · Contrast checker → · Palette generator →

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