#A6B42E#A6B42E

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

Color values

HEX#A6B42E
RGBrgb(166, 180, 46)
HSLhsl(66, 59%, 44%)
HSVhsv(66, 74%, 71%)
CMYKcmyk(7.8%, 0%, 74.4%, 29.4%)
CIE-LABlab(70.14, -21.50, 62.13)
CIE-LCHlch(70.14, 65.75, 109.09°)
OKLaboklab(73.52% -0.0654 0.1371)
OKLCHoklch(73.52% 0.152 115.5)
XYZxyz(32.5412, 40.9473, 8.7736)
Luminance0.4095 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B42E #3C2EB4
analogous
#B47F2E #A6B42E #63B42E
triadic
#A6B42E #2EA6B4 #B42EA6
tetradic
#A6B42E #2EB47F #3C2EB4 #B42E63
square
#A6B42E #2EB47F #3C2EB4 #B42E63
split-complementary
#A6B42E #2E63B4 #7F2EB4
monochromatic
#4C5315 #798322 #A6B42E #C4D24E #D4DE7E

Accessibility & contrast

On white

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

On black

9.19
#A6B42E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B42E
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B42E#FFFFFF#000000##000000
##A6B42E1.002.299.199.19
#FFFFFF2.291.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AB10
Deuteranopia (green-blind)
#C0AC39
Tritanopia (blue-blind)
#B1A99B
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #a6b42e;
/* rgb */ color: rgb(166, 180, 46);
/* oklch */ color: oklch(73.5% 0.152 115.5);
Tailwind
colors: {
  custom: {
    50: '#c4ca71',
    500: '#a6b42e',
    950: '#000000',
  },
}
SCSS
$custom: #a6b42e;
$custom-light: #c4ca71;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b42e",
  "rgb": {
    "r": 166,
    "g": 180,
    "b": 46
  },
  "hsl": {
    "h": 66.269,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.73521,
    "c": 0.15185,
    "h": 115.5
  },
  "luminance": 0.40947
}

Semantic roles & 50–950 ramp

primary
#A6B42E
secondary
#7F77C7
accent
#45E256
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B42E

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

Preview Lab → · Contrast checker → · Palette generator →

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