#5A901F#5A901F

#5A901F is a mid, vivid yellow-green. Relative luminance 0.222; OKLCH L 59.4% C 0.151 H 132.3°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5A901F
RGBrgb(90, 144, 31)
HSLhsl(89, 65%, 34%)
HSVhsv(89, 78%, 56%)
CMYKcmyk(37.5%, 0%, 78.5%, 43.5%)
CIE-LABlab(54.26, -36.06, 50.37)
CIE-LCHlch(54.26, 61.94, 125.60°)
OKLaboklab(59.36% -0.1019 0.1118)
OKLCHoklch(59.36% 0.151 132.3)
XYZxyz(14.4369, 22.2185, 4.8240)
Luminance0.2222 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A901F #551F90
analogous
#908E1F #5A901F #21901F
triadic
#5A901F #1F5A90 #901F5A
tetradic
#5A901F #1F908E #551F90 #901F21
square
#5A901F #1F908E #551F90 #901F21
split-complementary
#5A901F #1F2190 #8E1F90
monochromatic
#1B2B09 #3B5E14 #5A901F #79C22A #98D950

Accessibility & contrast

On white

3.86
#5A901F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#5A901F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A901F
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A901F#FFFFFF#000000##000000
##5A901F1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968402
Deuteranopia (green-blind)
#8F802B
Tritanopia (blue-blind)
#5B8A7B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5a901f;
/* rgb */ color: rgb(90, 144, 31);
/* oklch */ color: oklch(59.4% 0.151 132.3);
Tailwind
colors: {
  custom: {
    50: '#8db164',
    500: '#5a901f',
    950: '#000000',
  },
}
SCSS
$custom: #5a901f;
$custom-light: #8db164;
$custom-dark: #000000;
JSON
{
  "hex": "#5a901f",
  "rgb": {
    "r": 90,
    "g": 144,
    "b": 31
  },
  "hsl": {
    "h": 88.673,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59358,
    "c": 0.15129,
    "h": 132.3
  },
  "luminance": 0.22219
}

Semantic roles & 50–950 ramp

primary
#5A901F
secondary
#834EBC
accent
#40E890
background
#F9FAF6
surface
#F1F5EB
border
#CBCFC6
text
#0D1006
muted
#7E7F7A

Preview Lab

Preview with #5A901F

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

Preview Lab → · Contrast checker → · Palette generator →

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