#A8A521#A8A521

#A8A521 is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.2% C 0.143 H 108.2°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#A8A521
RGBrgb(168, 165, 33)
HSLhsl(59, 67%, 39%)
HSVhsv(59, 80%, 66%)
CMYKcmyk(0%, 1.8%, 80.4%, 34.1%)
CIE-LABlab(66.02, -13.55, 62.50)
CIE-LCHlch(66.02, 63.95, 102.23°)
OKLaboklab(70.24% -0.0445 0.1354)
OKLCHoklch(70.24% 0.143 108.2)
XYZxyz(29.8793, 35.3459, 6.6871)
Luminance0.3534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A521 #2124A8
analogous
#A86221 #A8A521 #67A821
triadic
#A8A521 #21A8A5 #A521A8
tetradic
#A8A521 #21A862 #2124A8 #A82167
square
#A8A521 #21A862 #2124A8 #A82167
split-complementary
#A8A521 #2167A8 #6221A8
monochromatic
#42410D #757317 #A8A521 #D6D330 #E0DE63

Accessibility & contrast

On white

2.60
#A8A521 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#A8A521 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A521
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A521#FFFFFF#000000##000000
##A8A5211.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E00
Deuteranopia (green-blind)
#B5A22D
Tritanopia (blue-blind)
#B59A8D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a8a521;
/* rgb */ color: rgb(168, 165, 33);
/* oklch */ color: oklch(70.2% 0.143 108.2);
Tailwind
colors: {
  custom: {
    50: '#c6bf69',
    500: '#a8a521',
    950: '#000000',
  },
}
SCSS
$custom: #a8a521;
$custom-light: #c6bf69;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a521",
  "rgb": {
    "r": 168,
    "g": 165,
    "b": 33
  },
  "hsl": {
    "h": 58.667,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.7024,
    "c": 0.14251,
    "h": 108.2
  },
  "luminance": 0.35345
}

Semantic roles & 50–950 ramp

primary
#A8A521
secondary
#5F62C5
accent
#42EA3E
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A521

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

Preview Lab → · Contrast checker → · Palette generator →

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