#A8AF21#A8AF21

#A8AF21 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.5% C 0.152 H 112.6°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#A8AF21
RGBrgb(168, 175, 33)
HSLhsl(63, 68%, 41%)
HSVhsv(63, 81%, 69%)
CMYKcmyk(4%, 0%, 81.1%, 31.4%)
CIE-LABlab(68.82, -18.66, 64.95)
CIE-LCHlch(68.82, 67.58, 106.03°)
OKLaboklab(72.48% -0.0586 0.1407)
OKLCHoklch(72.48% 0.152 112.6)
XYZxyz(31.7540, 39.0953, 7.3120)
Luminance0.3910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8AF21 #2821AF
analogous
#AF6F21 #A8AF21 #61AF21
triadic
#A8AF21 #21A8AF #AF21A8
tetradic
#A8AF21 #21AF6F #2821AF #AF2161
square
#A8AF21 #21AF6F #2821AF #AF2161
split-complementary
#A8AF21 #2161AF #6F21AF
monochromatic
#45480E #777C17 #A8AF21 #D1D934 #DCE368

Accessibility & contrast

On white

2.38
#A8AF21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#A8AF21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A8AF21
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8AF21#FFFFFF#000000##000000
##A8AF211.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a8af21;
/* rgb */ color: rgb(168, 175, 33);
/* oklch */ color: oklch(72.5% 0.152 112.6);
Tailwind
colors: {
  custom: {
    50: '#c6c66b',
    500: '#a8af21',
    950: '#000000',
  },
}
SCSS
$custom: #a8af21;
$custom-light: #c6c66b;
$custom-dark: #000000;
JSON
{
  "hex": "#a8af21",
  "rgb": {
    "r": 168,
    "g": 175,
    "b": 33
  },
  "hsl": {
    "h": 62.958,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.72482,
    "c": 0.15241,
    "h": 112.6
  },
  "luminance": 0.39095
}

Semantic roles & 50–950 ramp

primary
#A8AF21
secondary
#6964C8
accent
#3DEB45
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A8AF21

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

Preview Lab → · Contrast checker → · Palette generator →

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