#A8A522#A8A522

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

Color values

HEX#A8A522
RGBrgb(168, 165, 34)
HSLhsl(59, 66%, 40%)
HSVhsv(59, 80%, 66%)
CMYKcmyk(0%, 1.8%, 79.8%, 34.1%)
CIE-LABlab(66.02, -13.51, 62.22)
CIE-LCHlch(66.02, 63.67, 102.25°)
OKLaboklab(70.25% -0.0443 0.135)
OKLCHoklch(70.25% 0.142 108.2)
XYZxyz(29.8935, 35.3516, 6.7619)
Luminance0.3535 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8A522 #2225A8
analogous
#A86222 #A8A522 #68A822
triadic
#A8A522 #22A8A5 #A522A8
tetradic
#A8A522 #22A862 #2225A8 #A82268
square
#A8A522 #22A862 #2225A8 #A82268
split-complementary
#A8A522 #2268A8 #6222A8
monochromatic
#42410D #757318 #A8A522 #D5D232 #E0DD65

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A8A522#FFFFFF#000000##000000
##A8A5221.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)
#B5A22E
Tritanopia (blue-blind)
#B59A8D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a8a522;
/* rgb */ color: rgb(168, 165, 34);
/* oklch */ color: oklch(70.2% 0.142 108.2);
Tailwind
colors: {
  custom: {
    50: '#c6bf6a',
    500: '#a8a522',
    950: '#000000',
  },
}
SCSS
$custom: #a8a522;
$custom-light: #c6bf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8a522",
  "rgb": {
    "r": 168,
    "g": 165,
    "b": 34
  },
  "hsl": {
    "h": 58.657,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.70245,
    "c": 0.14205,
    "h": 108.2
  },
  "luminance": 0.35351
}

Semantic roles & 50–950 ramp

primary
#A8A522
secondary
#6163C5
accent
#42E93F
background
#FCFBF6
surface
#F9F6EC
border
#D2D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A8A522

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

Preview Lab → · Contrast checker → · Palette generator →

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