#A8A221#A8A221

#A8A221 is a light, vivid yellow. Relative luminance 0.343; OKLCH L 69.6% C 0.140 H 106.7°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#A8A221
RGBrgb(168, 162, 33)
HSLhsl(57, 67%, 39%)
HSVhsv(57, 80%, 66%)
CMYKcmyk(0%, 3.6%, 80.4%, 34.1%)
CIE-LABlab(65.18, -11.98, 61.77)
CIE-LCHlch(65.18, 62.92, 100.98°)
OKLaboklab(69.57% -0.0401 0.1338)
OKLCHoklch(69.57% 0.14 106.7)
XYZxyz(29.3445, 34.2764, 6.5088)
Luminance0.3427 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A221 #2127A8
analogous
#A85E21 #A8A221 #6BA821
triadic
#A8A221 #21A8A2 #A221A8
tetradic
#A8A221 #21A85E #2127A8 #A8216B
square
#A8A221 #21A85E #2127A8 #A8216B
split-complementary
#A8A221 #216BA8 #5E21A8
monochromatic
#423F0D #757117 #A8A221 #D6CF30 #E0DB63

Accessibility & contrast

On white

2.67
#A8A221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#A8A221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A221
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A221#FFFFFF#000000##000000
##A8A2211.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B09C00
Deuteranopia (green-blind)
#B3A02C
Tritanopia (blue-blind)
#B5978B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a8a221;
/* rgb */ color: rgb(168, 162, 33);
/* oklch */ color: oklch(69.6% 0.140 106.7);
Tailwind
colors: {
  custom: {
    50: '#c6bd69',
    500: '#a8a221',
    950: '#000000',
  },
}
SCSS
$custom: #a8a221;
$custom-light: #c6bd69;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a221",
  "rgb": {
    "r": 168,
    "g": 162,
    "b": 33
  },
  "hsl": {
    "h": 57.333,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.69574,
    "c": 0.1397,
    "h": 106.7
  },
  "luminance": 0.34275
}

Semantic roles & 50–950 ramp

primary
#A8A221
secondary
#5F64C5
accent
#45EA3E
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A221

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

Preview Lab → · Contrast checker → · Palette generator →

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