#5A951F#5A951F

#5A951F is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 60.7% C 0.158 H 133.1°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#5A951F
RGBrgb(90, 149, 31)
HSLhsl(90, 66%, 35%)
HSVhsv(90, 79%, 58%)
CMYKcmyk(39.6%, 0%, 79.2%, 41.6%)
CIE-LABlab(55.85, -38.25, 51.88)
CIE-LCHlch(55.85, 64.45, 126.40°)
OKLaboklab(60.66% -0.1078 0.115)
OKLCHoklch(60.66% 0.158 133.1)
XYZxyz(15.2110, 23.7668, 5.0820)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A951F #5A1F95
analogous
#95951F #5A951F #1F951F
triadic
#5A951F #1F5A95 #951F5A
tetradic
#5A951F #1F9595 #5A1F95 #951F1F
square
#5A951F #1F9595 #5A1F95 #951F1F
split-complementary
#5A951F #1F1F95 #951F95
monochromatic
#1D300A #3B6214 #5A951F #79C82A #97DB53

Accessibility & contrast

On white

3.65
#5A951F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#5A951F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A951F
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A951F#FFFFFF#000000##000000
##5A951F1.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8900
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#5A8F7F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5a951f;
/* rgb */ color: rgb(90, 149, 31);
/* oklch */ color: oklch(60.7% 0.158 133.1);
Tailwind
colors: {
  custom: {
    50: '#8eb465',
    500: '#5a951f',
    950: '#000000',
  },
}
SCSS
$custom: #5a951f;
$custom-light: #8eb465;
$custom-dark: #000000;
JSON
{
  "hex": "#5a951f",
  "rgb": {
    "r": 90,
    "g": 149,
    "b": 31
  },
  "hsl": {
    "h": 90,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60662,
    "c": 0.15763,
    "h": 133.1
  },
  "luminance": 0.23767
}

Semantic roles & 50–950 ramp

primary
#5A951F
secondary
#8851BF
accent
#3FE994
background
#F9FBF6
surface
#F1F6EB
border
#CBD0C6
text
#0D1106
muted
#7E807A

Preview Lab

Preview with #5A951F

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

Preview Lab → · Contrast checker → · Palette generator →

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