#A8A021#A8A021

#A8A021 is a light, vivid yellow. Relative luminance 0.336; OKLCH L 69.1% C 0.138 H 105.6°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#A8A021
RGBrgb(168, 160, 33)
HSLhsl(56, 67%, 39%)
HSVhsv(56, 80%, 66%)
CMYKcmyk(0%, 4.8%, 80.4%, 34.1%)
CIE-LABlab(64.63, -10.94, 61.28)
CIE-LCHlch(64.63, 62.25, 100.12°)
OKLaboklab(69.13% -0.0372 0.1328)
OKLCHoklch(69.13% 0.138 105.6)
XYZxyz(28.9950, 33.5774, 6.3923)
Luminance0.3358 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A021 #2129A8
analogous
#A85C21 #A8A021 #6DA821
triadic
#A8A021 #21A8A0 #A021A8
tetradic
#A8A021 #21A85C #2129A8 #A8216D
square
#A8A021 #21A85C #2129A8 #A8216D
split-complementary
#A8A021 #216DA8 #5C21A8
monochromatic
#423F0D #756F17 #A8A021 #D6CC30 #E0D963

Accessibility & contrast

On white

2.72
#A8A021 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#A8A021 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A021
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A021#FFFFFF#000000##000000
##A8A0211.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9A00
Deuteranopia (green-blind)
#B29F2C
Tritanopia (blue-blind)
#B59589
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a8a021;
/* rgb */ color: rgb(168, 160, 33);
/* oklch */ color: oklch(69.1% 0.138 105.6);
Tailwind
colors: {
  custom: {
    50: '#c6bb69',
    500: '#a8a021',
    950: '#000000',
  },
}
SCSS
$custom: #a8a021;
$custom-light: #c6bb69;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a021",
  "rgb": {
    "r": 168,
    "g": 160,
    "b": 33
  },
  "hsl": {
    "h": 56.444,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.69131,
    "c": 0.13788,
    "h": 105.6
  },
  "luminance": 0.33576
}

Semantic roles & 50–950 ramp

primary
#A8A021
secondary
#5F65C5
accent
#48EA3E
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #A8A021

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

Preview Lab → · Contrast checker → · Palette generator →

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