#AAAA21#AAAA21

#AAAA21 is a light, vivid yellow. Relative luminance 0.374; OKLCH L 71.5% C 0.147 H 109.6°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#AAAA21
RGBrgb(170, 170, 33)
HSLhsl(60, 67%, 40%)
HSVhsv(60, 81%, 67%)
CMYKcmyk(0%, 0%, 80.6%, 33.3%)
CIE-LABlab(67.58, -15.25, 63.93)
CIE-LCHlch(67.58, 65.72, 103.41°)
OKLaboklab(71.53% -0.0493 0.1384)
OKLCHoklch(71.53% 0.147 109.6)
XYZxyz(31.2280, 37.4063, 7.0137)
Luminance0.3740 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AAAA21 #2121AA
analogous
#AA6621 #AAAA21 #66AA21
triadic
#AAAA21 #21AAAA #AA21AA
tetradic
#AAAA21 #21AA66 #2121AA #AA2166
square
#AAAA21 #21AA66 #2121AA #AA2166
split-complementary
#AAAA21 #2166AA #6621AA
monochromatic
#43430D #777717 #AAAA21 #D7D731 #E1E164

Accessibility & contrast

On white

2.48
#AAAA21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.48
#AAAA21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AAAA21
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AAAA21#FFFFFF#000000##000000
##AAAA211.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#BAA62E
Tritanopia (blue-blind)
#B79F91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #aaaa21;
/* rgb */ color: rgb(170, 170, 33);
/* oklch */ color: oklch(71.5% 0.147 109.6);
Tailwind
colors: {
  custom: {
    50: '#c7c36a',
    500: '#aaaa21',
    950: '#000000',
  },
}
SCSS
$custom: #aaaa21;
$custom-light: #c7c36a;
$custom-dark: #000000;
JSON
{
  "hex": "#aaaa21",
  "rgb": {
    "r": 170,
    "g": 170,
    "b": 33
  },
  "hsl": {
    "h": 60,
    "s": 67.488,
    "l": 39.804
  },
  "oklch": {
    "l": 0.7153,
    "c": 0.14691,
    "h": 109.6
  },
  "luminance": 0.37405
}

Semantic roles & 50–950 ramp

primary
#AAAA21
secondary
#6161C6
accent
#3DEA3D
background
#FCFBF6
surface
#F9F7EC
border
#D2D0C7
text
#141207
muted
#82817A

Preview Lab

Preview with #AAAA21

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

Preview Lab → · Contrast checker → · Palette generator →

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