#A8A321#A8A321

#A8A321 is a light, vivid yellow. Relative luminance 0.346; OKLCH L 69.8% C 0.141 H 107.2°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#A8A321
RGBrgb(168, 163, 33)
HSLhsl(58, 67%, 39%)
HSVhsv(58, 80%, 66%)
CMYKcmyk(0%, 3%, 80.4%, 34.1%)
CIE-LABlab(65.46, -12.51, 62.01)
CIE-LCHlch(65.46, 63.26, 101.40°)
OKLaboklab(69.8% -0.0416 0.1344)
OKLCHoklch(69.8% 0.141 107.2)
XYZxyz(29.5214, 34.6301, 6.5678)
Luminance0.3463 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A321 #2126A8
analogous
#A86021 #A8A321 #6AA821
triadic
#A8A321 #21A8A3 #A321A8
tetradic
#A8A321 #21A860 #2126A8 #A8216A
square
#A8A321 #21A860 #2126A8 #A8216A
split-complementary
#A8A321 #216AA8 #6021A8
monochromatic
#42400D #757117 #A8A321 #D6D030 #E0DC63

Accessibility & contrast

On white

2.65
#A8A321 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#A8A321 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A321
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A321#FFFFFF#000000##000000
##A8A3211.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B4A12D
Tritanopia (blue-blind)
#B5988B
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a8a321;
/* rgb */ color: rgb(168, 163, 33);
/* oklch */ color: oklch(69.8% 0.141 107.2);
Tailwind
colors: {
  custom: {
    50: '#c6bd69',
    500: '#a8a321',
    950: '#000000',
  },
}
SCSS
$custom: #a8a321;
$custom-light: #c6bd69;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a321",
  "rgb": {
    "r": 168,
    "g": 163,
    "b": 33
  },
  "hsl": {
    "h": 57.778,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.69796,
    "c": 0.14063,
    "h": 107.2
  },
  "luminance": 0.34629
}

Semantic roles & 50–950 ramp

primary
#A8A321
secondary
#5F63C5
accent
#44EA3E
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A321

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

Preview Lab → · Contrast checker → · Palette generator →

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