#A7A520#A7A520

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

Color values

HEX#A7A520
RGBrgb(167, 165, 32)
HSLhsl(59, 68%, 39%)
HSVhsv(59, 81%, 65%)
CMYKcmyk(0%, 1.2%, 80.8%, 34.5%)
CIE-LABlab(65.93, -14.02, 62.67)
CIE-LCHlch(65.93, 64.22, 102.61°)
OKLaboklab(70.15% -0.0458 0.1356)
OKLCHoklch(70.15% 0.143 108.7)
XYZxyz(29.6534, 35.2310, 6.6045)
Luminance0.3523 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7A520 #2022A7
analogous
#A76220 #A7A520 #66A720
triadic
#A7A520 #20A7A5 #A520A7
tetradic
#A7A520 #20A762 #2022A7 #A72066
square
#A7A520 #20A762 #2022A7 #A72066
split-complementary
#A7A520 #2066A7 #6220A7
monochromatic
#40400C #747216 #A7A520 #D7D42D #E1DF61

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7A520#FFFFFF#000000##000000
##A7A5201.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)
#B5A22C
Tritanopia (blue-blind)
#B49A8D
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a7a520;
/* rgb */ color: rgb(167, 165, 32);
/* oklch */ color: oklch(70.1% 0.143 108.7);
Tailwind
colors: {
  custom: {
    50: '#c5bf69',
    500: '#a7a520',
    950: '#000000',
  },
}
SCSS
$custom: #a7a520;
$custom-light: #c5bf69;
$custom-dark: #000000;
JSON
{
  "hex": "#a7a520",
  "rgb": {
    "r": 167,
    "g": 165,
    "b": 32
  },
  "hsl": {
    "h": 59.111,
    "s": 67.839,
    "l": 39.02
  },
  "oklch": {
    "l": 0.70148,
    "c": 0.14316,
    "h": 108.7
  },
  "luminance": 0.3523
}

Semantic roles & 50–950 ramp

primary
#A7A520
secondary
#5D5FC5
accent
#40EB3D
background
#FCFBF6
surface
#F9F6EB
border
#D2D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A7A520

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

Preview Lab → · Contrast checker → · Palette generator →

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