#A6A221#A6A221

#A6A221 is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.4% C 0.140 H 107.7°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#A6A221
RGBrgb(166, 162, 33)
HSLhsl(58, 67%, 39%)
HSVhsv(58, 80%, 65%)
CMYKcmyk(0%, 2.4%, 80.1%, 34.9%)
CIE-LABlab(65.01, -12.87, 61.55)
CIE-LCHlch(65.01, 62.88, 101.81°)
OKLaboklab(69.4% -0.0425 0.1334)
OKLCHoklch(69.4% 0.14 107.7)
XYZxyz(28.9219, 34.0585, 6.4890)
Luminance0.3406 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A221 #2125A6
analogous
#A65F21 #A6A221 #68A621
triadic
#A6A221 #21A6A2 #A221A6
tetradic
#A6A221 #21A65F #2125A6 #A62168
square
#A6A221 #21A65F #2125A6 #A62168
split-complementary
#A6A221 #2168A6 #5F21A6
monochromatic
#403E0D #737017 #A6A221 #D6D12F #E0DC62

Accessibility & contrast

On white

2.69
#A6A221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#A6A221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A221
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A221#FFFFFF#000000##000000
##A6A2211.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09B00
Deuteranopia (green-blind)
#B2A02D
Tritanopia (blue-blind)
#B3978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a6a221;
/* rgb */ color: rgb(166, 162, 33);
/* oklch */ color: oklch(69.4% 0.140 107.7);
Tailwind
colors: {
  custom: {
    50: '#c4bd69',
    500: '#a6a221',
    950: '#000000',
  },
}
SCSS
$custom: #a6a221;
$custom-light: #c4bd69;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a221",
  "rgb": {
    "r": 166,
    "g": 162,
    "b": 33
  },
  "hsl": {
    "h": 58.195,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.69395,
    "c": 0.14004,
    "h": 107.7
  },
  "luminance": 0.34057
}

Semantic roles & 50–950 ramp

primary
#A6A221
secondary
#5E61C5
accent
#43EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A221

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

Preview Lab → · Contrast checker → · Palette generator →

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