#A8A421#A8A421

#A8A421 is a light, vivid yellow. Relative luminance 0.350; OKLCH L 70.0% C 0.142 H 107.7°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#A8A421
RGBrgb(168, 164, 33)
HSLhsl(58, 67%, 39%)
HSVhsv(58, 80%, 66%)
CMYKcmyk(0%, 2.4%, 80.4%, 34.1%)
CIE-LABlab(65.74, -13.03, 62.26)
CIE-LCHlch(65.74, 63.60, 101.82°)
OKLaboklab(70.02% -0.043 0.1349)
OKLCHoklch(70.02% 0.142 107.7)
XYZxyz(29.6996, 34.9866, 6.6272)
Luminance0.3499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A421 #2125A8
analogous
#A86121 #A8A421 #69A821
triadic
#A8A421 #21A8A4 #A421A8
tetradic
#A8A421 #21A861 #2125A8 #A82169
square
#A8A421 #21A861 #2125A8 #A82169
split-complementary
#A8A421 #2169A8 #6121A8
monochromatic
#42400D #757217 #A8A421 #D6D130 #E0DD63

Accessibility & contrast

On white

2.63
#A8A421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#A8A421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8A421
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8A421#FFFFFF#000000##000000
##A8A4211.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8a421;
/* rgb */ color: rgb(168, 164, 33);
/* oklch */ color: oklch(70.0% 0.142 107.7);
Tailwind
colors: {
  custom: {
    50: '#c6be69',
    500: '#a8a421',
    950: '#000000',
  },
}
SCSS
$custom: #a8a421;
$custom-light: #c6be69;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a421",
  "rgb": {
    "r": 168,
    "g": 164,
    "b": 33
  },
  "hsl": {
    "h": 58.222,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.70018,
    "c": 0.14156,
    "h": 107.7
  },
  "luminance": 0.34986
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A8A421

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

Preview Lab → · Contrast checker → · Palette generator →

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