#A7AF21#A7AF21

#A7AF21 is a light, vivid yellow. Relative luminance 0.390; OKLCH L 72.4% C 0.153 H 113.1°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#A7AF21
RGBrgb(167, 175, 33)
HSLhsl(63, 68%, 41%)
HSVhsv(63, 81%, 69%)
CMYKcmyk(4.6%, 0%, 81.1%, 31.4%)
CIE-LABlab(68.74, -19.10, 64.85)
CIE-LCHlch(68.74, 67.60, 106.41°)
OKLaboklab(72.4% -0.0598 0.1405)
OKLCHoklch(72.4% 0.153 113.1)
XYZxyz(31.5419, 38.9860, 7.3020)
Luminance0.3898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7AF21 #2921AF
analogous
#AF7021 #A7AF21 #60AF21
triadic
#A7AF21 #21A7AF #AF21A7
tetradic
#A7AF21 #21AF70 #2921AF #AF2160
square
#A7AF21 #21AF70 #2921AF #AF2160
split-complementary
#A7AF21 #2160AF #7021AF
monochromatic
#45480E #767C17 #A7AF21 #D0D934 #DCE368

Accessibility & contrast

On white

2.39
#A7AF21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#A7AF21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A7AF21
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7AF21#FFFFFF#000000##000000
##A7AF211.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BDA92F
Tritanopia (blue-blind)
#B3A496
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #a7af21;
/* rgb */ color: rgb(167, 175, 33);
/* oklch */ color: oklch(72.4% 0.153 113.1);
Tailwind
colors: {
  custom: {
    50: '#c5c66b',
    500: '#a7af21',
    950: '#000000',
  },
}
SCSS
$custom: #a7af21;
$custom-light: #c5c66b;
$custom-dark: #000000;
JSON
{
  "hex": "#a7af21",
  "rgb": {
    "r": 167,
    "g": 175,
    "b": 33
  },
  "hsl": {
    "h": 63.38,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.72399,
    "c": 0.1527,
    "h": 113.1
  },
  "luminance": 0.38985
}

Semantic roles & 50–950 ramp

primary
#A7AF21
secondary
#6964C8
accent
#3DEB47
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A7AF21

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

Preview Lab → · Contrast checker → · Palette generator →

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