#A6C31F#A6C31F

#A6C31F is a light, vivid yellow-green. Relative luminance 0.472; OKLCH L 76.9% C 0.175 H 120.1°. Best body text is #000000 at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#A6C31F
RGBrgb(166, 195, 31)
HSLhsl(71, 73%, 44%)
HSVhsv(71, 84%, 76%)
CMYKcmyk(14.9%, 0%, 84.1%, 23.5%)
CIE-LABlab(74.34, -29.36, 70.14)
CIE-LCHlch(74.34, 76.03, 112.71°)
OKLaboklab(76.88% -0.088 0.1516)
OKLCHoklch(76.88% 0.175 120.1)
XYZxyz(35.4891, 47.2363, 8.5440)
Luminance0.4724 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6C31F #3C1FC3
analogous
#C38E1F #A6C31F #54C31F
triadic
#A6C31F #1FA6C3 #C31FA6
tetradic
#A6C31F #1FC38E #3C1FC3 #C31F54
square
#A6C31F #1FC38E #3C1FC3 #C31F54
split-complementary
#A6C31F #1F54C3 #8E1FC3
monochromatic
#4C590E #798E17 #A6C31F #C4E03F #D4E974

Accessibility & contrast

On white

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

On black

10.45
#A6C31F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6C31F
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6C31F#FFFFFF#000000##000000
##A6C31F1.002.0110.4510.45
#FFFFFF2.011.0021.0021.00
#00000010.4521.001.001.00
##00000010.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a6c31f;
/* rgb */ color: rgb(166, 195, 31);
/* oklch */ color: oklch(76.9% 0.175 120.1);
Tailwind
colors: {
  custom: {
    50: '#c5d56d',
    500: '#a6c31f',
    950: '#000000',
  },
}
SCSS
$custom: #a6c31f;
$custom-light: #c5d56d;
$custom-dark: #000000;
JSON
{
  "hex": "#a6c31f",
  "rgb": {
    "r": 166,
    "g": 195,
    "b": 31
  },
  "hsl": {
    "h": 70.61,
    "s": 72.566,
    "l": 44.314
  },
  "oklch": {
    "l": 0.76882,
    "c": 0.1753,
    "h": 120.1
  },
  "luminance": 0.47236
}

Semantic roles & 50–950 ramp

primary
#A6C31F
secondary
#7F6ED0
accent
#39EF59
background
#FCFDF7
surface
#F8FAED
border
#D1D3C8
text
#131408
muted
#82837B

Preview Lab

Preview with #A6C31F

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

Preview Lab → · Contrast checker → · Palette generator →

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