#AAA821#AAA821

#AAA821 is a light, vivid yellow. Relative luminance 0.367; OKLCH L 71.1% C 0.145 H 108.7°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#AAA821
RGBrgb(170, 168, 33)
HSLhsl(59, 67%, 40%)
HSVhsv(59, 81%, 67%)
CMYKcmyk(0%, 1.2%, 80.6%, 33.3%)
CIE-LABlab(67.02, -14.22, 63.45)
CIE-LCHlch(67.02, 65.02, 102.63°)
OKLaboklab(71.08% -0.0464 0.1374)
OKLCHoklch(71.08% 0.145 108.7)
XYZxyz(30.8559, 36.6621, 6.8897)
Luminance0.3666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAA821 #2123AA
analogous
#AA6321 #AAA821 #68AA21
triadic
#AAA821 #21AAA8 #A821AA
tetradic
#AAA821 #21AA63 #2123AA #AA2168
square
#AAA821 #21AA63 #2123AA #AA2168
split-complementary
#AAA821 #2168AA #6321AA
monochromatic
#43430D #777517 #AAA821 #D7D531 #E1DF64

Accessibility & contrast

On white

2.52
#AAA821 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#AAA821 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAA821
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAA821#FFFFFF#000000##000000
##AAA8211.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A100
Deuteranopia (green-blind)
#B8A52E
Tritanopia (blue-blind)
#B79D90
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #aaa821;
/* rgb */ color: rgb(170, 168, 33);
/* oklch */ color: oklch(71.1% 0.145 108.7);
Tailwind
colors: {
  custom: {
    50: '#c7c16a',
    500: '#aaa821',
    950: '#000000',
  },
}
SCSS
$custom: #aaa821;
$custom-light: #c7c16a;
$custom-dark: #000000;
JSON
{
  "hex": "#aaa821",
  "rgb": {
    "r": 170,
    "g": 168,
    "b": 33
  },
  "hsl": {
    "h": 59.124,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.71085,
    "c": 0.14499,
    "h": 108.7
  },
  "luminance": 0.36661
}

Semantic roles & 50–950 ramp

primary
#AAA821
secondary
#6162C6
accent
#40EA3D
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141207
muted
#82817A

Preview Lab

Preview with #AAA821

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

Preview Lab → · Contrast checker → · Palette generator →

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