#A6B22A#A6B22A

#A6B22A is a light, vivid yellow. Relative luminance 0.401; OKLCH L 73.0% C 0.152 H 114.7°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#A6B22A
RGBrgb(166, 178, 42)
HSLhsl(65, 62%, 43%)
HSVhsv(65, 76%, 70%)
CMYKcmyk(6.7%, 0%, 76.4%, 30.2%)
CIE-LABlab(69.55, -20.69, 62.89)
CIE-LCHlch(69.55, 66.21, 108.21°)
OKLaboklab(73.04% -0.0635 0.138)
OKLCHoklch(73.04% 0.152 114.7)
XYZxyz(32.0651, 40.1155, 8.2440)
Luminance0.4012 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B22A #362AB2
analogous
#B27A2A #A6B22A #62B22A
triadic
#A6B22A #2AA6B2 #B22AA6
tetradic
#A6B22A #2AB27A #362AB2 #B22A62
square
#A6B22A #2AB27A #362AB2 #B22A62
split-complementary
#A6B22A #2A62B2 #7A2AB2
monochromatic
#4A4F13 #78801E #A6B22A #C7D346 #D6DF77

Accessibility & contrast

On white

2.33
#A6B22A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#A6B22A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B22A
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B22A#FFFFFF#000000##000000
##A6B22A1.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA905
Deuteranopia (green-blind)
#BFAB36
Tritanopia (blue-blind)
#B1A799
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b22a;
/* rgb */ color: rgb(166, 178, 42);
/* oklch */ color: oklch(73.0% 0.152 114.7);
Tailwind
colors: {
  custom: {
    50: '#c4c86f',
    500: '#a6b22a',
    950: '#000000',
  },
}
SCSS
$custom: #a6b22a;
$custom-light: #c4c86f;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b22a",
  "rgb": {
    "r": 166,
    "g": 178,
    "b": 42
  },
  "hsl": {
    "h": 65.294,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.73043,
    "c": 0.15185,
    "h": 114.7
  },
  "luminance": 0.40115
}

Semantic roles & 50–950 ramp

primary
#A6B22A
secondary
#7971C7
accent
#43E551
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #A6B22A

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

Preview Lab → · Contrast checker → · Palette generator →

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