#A6B42A#A6B42A

#A6B42A is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.5% C 0.154 H 115.5°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#A6B42A
RGBrgb(166, 180, 42)
HSLhsl(66, 62%, 44%)
HSVhsv(66, 77%, 71%)
CMYKcmyk(7.8%, 0%, 76.7%, 29.4%)
CIE-LABlab(70.12, -21.68, 63.41)
CIE-LCHlch(70.12, 67.02, 108.88°)
OKLaboklab(73.5% -0.0662 0.1391)
OKLCHoklch(73.5% 0.154 115.5)
XYZxyz(32.4660, 40.9172, 8.3776)
Luminance0.4092 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B42A #382AB4
analogous
#B47D2A #A6B42A #61B42A
triadic
#A6B42A #2AA6B4 #B42AA6
tetradic
#A6B42A #2AB47D #382AB4 #B42A61
square
#A6B42A #2AB47D #382AB4 #B42A61
split-complementary
#A6B42A #2A61B4 #7D2AB4
monochromatic
#4A5113 #78821E #A6B42A #C6D447 #D5E079

Accessibility & contrast

On white

2.29
#A6B42A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#A6B42A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B42A
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B42A#FFFFFF#000000##000000
##A6B42A1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB03
Deuteranopia (green-blind)
#C0AC36
Tritanopia (blue-blind)
#B1A99A
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a6b42a;
/* rgb */ color: rgb(166, 180, 42);
/* oklch */ color: oklch(73.5% 0.154 115.5);
Tailwind
colors: {
  custom: {
    50: '#c4ca6f',
    500: '#a6b42a',
    950: '#000000',
  },
}
SCSS
$custom: #a6b42a;
$custom-light: #c4ca6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b42a",
  "rgb": {
    "r": 166,
    "g": 180,
    "b": 42
  },
  "hsl": {
    "h": 66.087,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.73498,
    "c": 0.15403,
    "h": 115.5
  },
  "luminance": 0.40917
}

Semantic roles & 50–950 ramp

primary
#A6B42A
secondary
#7B72C8
accent
#43E553
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B42A

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

Preview Lab → · Contrast checker → · Palette generator →

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