#A7A522#A7A522

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

Color values

HEX#A7A522
RGBrgb(167, 165, 34)
HSLhsl(59, 66%, 39%)
HSVhsv(59, 80%, 65%)
CMYKcmyk(0%, 1.2%, 79.6%, 34.5%)
CIE-LABlab(65.94, -13.95, 62.11)
CIE-LCHlch(65.94, 63.66, 102.66°)
OKLaboklab(70.16% -0.0455 0.1348)
OKLCHoklch(70.16% 0.142 108.6)
XYZxyz(29.6814, 35.2422, 6.7520)
Luminance0.3524 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A522 #2224A7
analogous
#A76322 #A7A522 #67A722
triadic
#A7A522 #22A7A5 #A522A7
tetradic
#A7A522 #22A763 #2224A7 #A72267
square
#A7A522 #22A763 #2224A7 #A72267
split-complementary
#A7A522 #2267A7 #6322A7
monochromatic
#41410D #747318 #A7A522 #D5D331 #DFDE64

Accessibility & contrast

On white

2.61
#A7A522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#A7A522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7A522
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7A522#FFFFFF#000000##000000
##A7A5221.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a7a522;
/* rgb */ color: rgb(167, 165, 34);
/* oklch */ color: oklch(70.2% 0.142 108.6);
Tailwind
colors: {
  custom: {
    50: '#c5bf6a',
    500: '#a7a522',
    950: '#000000',
  },
}
SCSS
$custom: #a7a522;
$custom-light: #c5bf6a;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a522",
  "rgb": {
    "r": 167,
    "g": 165,
    "b": 34
  },
  "hsl": {
    "h": 59.098,
    "s": 66.169,
    "l": 39.412
  },
  "oklch": {
    "l": 0.70157,
    "c": 0.14225,
    "h": 108.6
  },
  "luminance": 0.35241
}

Semantic roles & 50–950 ramp

primary
#A7A522
secondary
#6062C5
accent
#41E93F
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A7A522

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

Preview Lab → · Contrast checker → · Palette generator →

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