#5A9D1F#5A9D1F

#5A9D1F is a light, vivid yellow-green. Relative luminance 0.264; OKLCH L 62.7% C 0.168 H 134.3°. Best body text is #000000 at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#5A9D1F
RGBrgb(90, 157, 31)
HSLhsl(92, 67%, 37%)
HSVhsv(92, 80%, 62%)
CMYKcmyk(42.7%, 0%, 80.3%, 38.4%)
CIE-LABlab(58.40, -41.66, 54.26)
CIE-LCHlch(58.40, 68.41, 127.51°)
OKLaboklab(62.75% -0.117 0.12)
OKLCHoklch(62.75% 0.168 134.3)
XYZxyz(16.5204, 26.3856, 5.5185)
Luminance0.2639 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A9D1F #621F9D
analogous
#999D1F #5A9D1F #1F9D23
triadic
#5A9D1F #1F5A9D #9D1F5A
tetradic
#5A9D1F #1F999D #621F9D #9D231F
square
#5A9D1F #1F999D #621F9D #9D231F
split-complementary
#5A9D1F #231F9D #9D1F99
monochromatic
#1F370B #3D6A15 #5A9D1F #77D029 #97DE58

Accessibility & contrast

On white

3.35
#5A9D1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.28
#5A9D1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A9D1F
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A9D1F#FFFFFF#000000##000000
##5A9D1F1.003.356.286.28
#FFFFFF3.351.0021.0021.00
#0000006.2821.001.001.00
##0000006.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#A39000
Deuteranopia (green-blind)
#9A8A2D
Tritanopia (blue-blind)
#599786
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5a9d1f;
/* rgb */ color: rgb(90, 157, 31);
/* oklch */ color: oklch(62.7% 0.168 134.3);
Tailwind
colors: {
  custom: {
    50: '#8fba66',
    500: '#5a9d1f',
    950: '#000000',
  },
}
SCSS
$custom: #5a9d1f;
$custom-light: #8fba66;
$custom-dark: #000000;
JSON
{
  "hex": "#5a9d1f",
  "rgb": {
    "r": 90,
    "g": 157,
    "b": 31
  },
  "hsl": {
    "h": 91.905,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.62749,
    "c": 0.16759,
    "h": 134.3
  },
  "luminance": 0.26387
}

Semantic roles & 50–950 ramp

primary
#5A9D1F
secondary
#8F56C2
accent
#3EEA99
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1206
muted
#7E817A

Preview Lab

Preview with #5A9D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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