#A6D540#A6D540

#A6D540 is a light, vivid yellow-green. Relative luminance 0.561; OKLCH L 81.2% C 0.180 H 125.5°. Best body text is #000000 at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#A6D540
RGBrgb(166, 213, 64)
HSLhsl(79, 64%, 54%)
HSVhsv(79, 70%, 84%)
CMYKcmyk(22.1%, 0%, 70%, 16.5%)
CIE-LABlab(79.65, -36.21, 65.09)
CIE-LCHlch(79.65, 74.48, 119.09°)
OKLaboklab(81.23% -0.1044 0.1462)
OKLCHoklch(81.23% 0.18 125.5)
XYZxyz(40.4458, 56.0651, 13.5403)
Luminance0.5607 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6D540 #6F40D5
analogous
#D5B940 #A6D540 #5CD540
triadic
#A6D540 #40A6D5 #D540A6
tetradic
#A6D540 #40D5B9 #6F40D5 #D5405C
square
#A6D540 #40D5B9 #6F40D5 #D5405C
split-complementary
#A6D540 #405CD5 #B940D5
monochromatic
#607F1C #85B127 #A6D540 #BDE072 #D5EBA4

Accessibility & contrast

On white

1.72
#A6D540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

12.21
#A6D540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6D540
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6D540#FFFFFF#000000##000000
##A6D5401.001.7212.2112.21
#FFFFFF1.721.0021.0021.00
#00000012.2121.001.001.00
##00000012.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E0C727
Deuteranopia (green-blind)
#DAC54D
Tritanopia (blue-blind)
#ADCBB8
Achromatopsia (no color)
#C5C5C5

Design tokens & code

CSS
--color: #a6d540;
/* rgb */ color: rgb(166, 213, 64);
/* oklch */ color: oklch(81.2% 0.180 125.5);
Tailwind
colors: {
  custom: {
    50: '#c4e27e',
    500: '#a6d540',
    950: '#000000',
  },
}
SCSS
$custom: #a6d540;
$custom-light: #c4e27e;
$custom-dark: #000000;
JSON
{
  "hex": "#a6d540",
  "rgb": {
    "r": 166,
    "g": 213,
    "b": 64
  },
  "hsl": {
    "h": 78.926,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.81226,
    "c": 0.17961,
    "h": 125.5
  },
  "luminance": 0.56066
}

Semantic roles & 50–950 ramp

primary
#A6D540
secondary
#4D3386
accent
#41E775
background
#FEFEFB
surface
#FAFCF2
border
#D3D5CC
text
#13150A
muted
#83847D

Preview Lab

Preview with #A6D540

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

Preview Lab → · Contrast checker → · Palette generator →

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