#A6C21F#A6C21F

#A6C21F is a light, vivid yellow-green. Relative luminance 0.468; OKLCH L 76.7% C 0.174 H 119.9°. Best body text is #000000 at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#A6C21F
RGBrgb(166, 194, 31)
HSLhsl(70, 72%, 44%)
HSVhsv(70, 84%, 76%)
CMYKcmyk(14.4%, 0%, 84%, 23.9%)
CIE-LABlab(74.06, -28.88, 69.89)
CIE-LCHlch(74.06, 75.62, 112.45°)
OKLaboklab(76.65% -0.0867 0.1511)
OKLCHoklch(76.65% 0.174 119.9)
XYZxyz(35.2658, 46.7897, 8.4695)
Luminance0.4679 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6C21F #3B1FC2
analogous
#C28D1F #A6C21F #55C21F
triadic
#A6C21F #1FA6C2 #C21FA6
tetradic
#A6C21F #1FC28D #3B1FC2 #C21F55
square
#A6C21F #1FC28D #3B1FC2 #C21F55
split-complementary
#A6C21F #1F55C2 #8D1FC2
monochromatic
#4C580E #798D17 #A6C21F #C4E03E #D4E973

Accessibility & contrast

On white

2.03
#A6C21F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.36
#A6C21F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6C21F
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6C21F#FFFFFF#000000##000000
##A6C21F1.002.0310.3610.36
#FFFFFF2.031.0021.0021.00
#00000010.3621.001.001.00
##00000010.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#CFB600
Deuteranopia (green-blind)
#CCB632
Tritanopia (blue-blind)
#B0B7A6
Achromatopsia (no color)
#B6B6B6

Design tokens & code

CSS
--color: #a6c21f;
/* rgb */ color: rgb(166, 194, 31);
/* oklch */ color: oklch(76.7% 0.174 119.9);
Tailwind
colors: {
  custom: {
    50: '#c5d46d',
    500: '#a6c21f',
    950: '#000000',
  },
}
SCSS
$custom: #a6c21f;
$custom-light: #c5d46d;
$custom-dark: #000000;
JSON
{
  "hex": "#a6c21f",
  "rgb": {
    "r": 166,
    "g": 194,
    "b": 31
  },
  "hsl": {
    "h": 70.307,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.76651,
    "c": 0.17419,
    "h": 119.9
  },
  "luminance": 0.46789
}

Semantic roles & 50–950 ramp

primary
#A6C21F
secondary
#7E6DCF
accent
#39EF58
background
#FCFCF7
surface
#F8F9ED
border
#D1D2C8
text
#131408
muted
#82827B

Preview Lab

Preview with #A6C21F

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

Preview Lab → · Contrast checker → · Palette generator →

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