#A5C31F#A5C31F

#A5C31F is a light, vivid yellow-green. Relative luminance 0.471; OKLCH L 76.8% C 0.176 H 120.5°. Best body text is #000000 at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#A5C31F
RGBrgb(165, 195, 31)
HSLhsl(71, 73%, 44%)
HSVhsv(71, 84%, 76%)
CMYKcmyk(15.4%, 0%, 84.1%, 23.5%)
CIE-LABlab(74.27, -29.77, 70.05)
CIE-LCHlch(74.27, 76.11, 113.02°)
OKLaboklab(76.81% -0.0891 0.1514)
OKLCHoklch(76.81% 0.176 120.5)
XYZxyz(35.2802, 47.1286, 8.5342)
Luminance0.4713 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A5C31F #3D1FC3
analogous
#C38F1F #A5C31F #53C31F
triadic
#A5C31F #1FA5C3 #C31FA5
tetradic
#A5C31F #1FC38F #3D1FC3 #C31F53
square
#A5C31F #1FC38F #3D1FC3 #C31F53
split-complementary
#A5C31F #1F53C3 #8F1FC3
monochromatic
#4C590E #788E17 #A5C31F #C3E03F #D3E974

Accessibility & contrast

On white

2.01
#A5C31F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.43
#A5C31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A5C31F
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A5C31F#FFFFFF#000000##000000
##A5C31F1.002.0110.4310.43
#FFFFFF2.011.0021.0021.00
#00000010.4321.001.001.00
##00000010.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#D0B700
Deuteranopia (green-blind)
#CCB732
Tritanopia (blue-blind)
#AFB8A6
Achromatopsia (no color)
#B7B7B7

Design tokens & code

CSS
--color: #a5c31f;
/* rgb */ color: rgb(165, 195, 31);
/* oklch */ color: oklch(76.8% 0.176 120.5);
Tailwind
colors: {
  custom: {
    50: '#c4d56d',
    500: '#a5c31f',
    950: '#000000',
  },
}
SCSS
$custom: #a5c31f;
$custom-light: #c4d56d;
$custom-dark: #000000;
JSON
{
  "hex": "#a5c31f",
  "rgb": {
    "r": 165,
    "g": 195,
    "b": 31
  },
  "hsl": {
    "h": 70.976,
    "s": 72.566,
    "l": 44.314
  },
  "oklch": {
    "l": 0.76809,
    "c": 0.17571,
    "h": 120.5
  },
  "luminance": 0.47128
}

Semantic roles & 50–950 ramp

primary
#A5C31F
secondary
#806ED0
accent
#39EF5A
background
#FCFDF7
surface
#F8FAED
border
#D1D3C8
text
#131408
muted
#82837B

Preview Lab

Preview with #A5C31F

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

Preview Lab → · Contrast checker → · Palette generator →

#A5C31F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva