#A6B221#A6B221

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

Color values

HEX#A6B221
RGBrgb(166, 178, 33)
HSLhsl(65, 69%, 41%)
HSVhsv(65, 81%, 70%)
CMYKcmyk(6.7%, 0%, 81.5%, 30.2%)
CIE-LABlab(69.51, -21.03, 65.49)
CIE-LCHlch(69.51, 68.78, 107.80°)
OKLaboklab(73% -0.0651 0.1419)
OKLCHoklch(73% 0.156 114.6)
XYZxyz(31.9218, 40.0582, 7.4890)
Luminance0.4006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6B221 #2D21B2
analogous
#B27621 #A6B221 #5DB221
triadic
#A6B221 #21A6B2 #B221A6
tetradic
#A6B221 #21B276 #2D21B2 #B2215D
square
#A6B221 #21B276 #2D21B2 #B2215D
split-complementary
#A6B221 #215DB2 #7621B2
monochromatic
#464B0E #767E17 #A6B221 #CCDA36 #D9E36A

Accessibility & contrast

On white

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

On black

9.01
#A6B221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6B221
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6B221#FFFFFF#000000##000000
##A6B2211.002.339.019.01
#FFFFFF2.331.0021.0021.00
#0000009.0121.001.001.00
##0000009.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA900
Deuteranopia (green-blind)
#BFAB30
Tritanopia (blue-blind)
#B1A798
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a6b221;
/* rgb */ color: rgb(166, 178, 33);
/* oklch */ color: oklch(73.0% 0.156 114.6);
Tailwind
colors: {
  custom: {
    50: '#c4c86b',
    500: '#a6b221',
    950: '#000000',
  },
}
SCSS
$custom: #a6b221;
$custom-light: #c4c86b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6b221",
  "rgb": {
    "r": 166,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 64.966,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72998,
    "c": 0.15613,
    "h": 114.6
  },
  "luminance": 0.40058
}

Semantic roles & 50–950 ramp

primary
#A6B221
secondary
#6E66C9
accent
#3CEC4B
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6B221

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

Preview Lab → · Contrast checker → · Palette generator →

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