#A6AF21#A6AF21

#A6AF21 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.3% C 0.153 H 113.5°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#A6AF21
RGBrgb(166, 175, 33)
HSLhsl(64, 68%, 41%)
HSVhsv(64, 81%, 69%)
CMYKcmyk(5.1%, 0%, 81.1%, 31.4%)
CIE-LABlab(68.66, -19.53, 64.75)
CIE-LCHlch(68.66, 67.63, 106.78°)
OKLaboklab(72.32% -0.0609 0.1403)
OKLCHoklch(72.32% 0.153 113.5)
XYZxyz(31.3314, 38.8774, 7.2922)
Luminance0.3888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6AF21 #2A21AF
analogous
#AF7121 #A6AF21 #5FAF21
triadic
#A6AF21 #21A6AF #AF21A6
tetradic
#A6AF21 #21AF71 #2A21AF #AF215F
square
#A6AF21 #21AF71 #2A21AF #AF215F
split-complementary
#A6AF21 #215FAF #7121AF
monochromatic
#44480E #757C17 #A6AF21 #CED934 #DBE368

Accessibility & contrast

On white

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

On black

8.78
#A6AF21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6AF21
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6AF21#FFFFFF#000000##000000
##A6AF211.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#BDA600
Deuteranopia (green-blind)
#BCA92F
Tritanopia (blue-blind)
#B2A496
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #a6af21;
/* rgb */ color: rgb(166, 175, 33);
/* oklch */ color: oklch(72.3% 0.153 113.5);
Tailwind
colors: {
  custom: {
    50: '#c4c66b',
    500: '#a6af21',
    950: '#000000',
  },
}
SCSS
$custom: #a6af21;
$custom-light: #c4c66b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6af21",
  "rgb": {
    "r": 166,
    "g": 175,
    "b": 33
  },
  "hsl": {
    "h": 63.803,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.72317,
    "c": 0.15298,
    "h": 113.5
  },
  "luminance": 0.38877
}

Semantic roles & 50–950 ramp

primary
#A6AF21
secondary
#6A64C8
accent
#3DEB48
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A6AF21

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

Preview Lab → · Contrast checker → · Palette generator →

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