#A6A321#A6A321

#A6A321 is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.6% C 0.141 H 108.2°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#A6A321
RGBrgb(166, 163, 33)
HSLhsl(59, 67%, 39%)
HSVhsv(59, 80%, 65%)
CMYKcmyk(0%, 1.8%, 80.1%, 34.9%)
CIE-LABlab(65.29, -13.39, 61.80)
CIE-LCHlch(65.29, 63.23, 102.23°)
OKLaboklab(69.62% -0.0439 0.134)
OKLCHoklch(69.62% 0.141 108.2)
XYZxyz(29.0988, 34.4122, 6.5480)
Luminance0.3441 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A321 #2124A6
analogous
#A66121 #A6A321 #67A621
triadic
#A6A321 #21A6A3 #A321A6
tetradic
#A6A321 #21A661 #2124A6 #A62167
square
#A6A321 #21A661 #2124A6 #A62167
split-complementary
#A6A321 #2167A6 #6121A6
monochromatic
#403F0D #737117 #A6A321 #D6D22F #E0DD62

Accessibility & contrast

On white

2.66
#A6A321 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#A6A321 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A321
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A321#FFFFFF#000000##000000
##A6A3211.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B3A02D
Tritanopia (blue-blind)
#B2988B
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #a6a321;
/* rgb */ color: rgb(166, 163, 33);
/* oklch */ color: oklch(69.6% 0.141 108.2);
Tailwind
colors: {
  custom: {
    50: '#c4bd69',
    500: '#a6a321',
    950: '#000000',
  },
}
SCSS
$custom: #a6a321;
$custom-light: #c4bd69;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a321",
  "rgb": {
    "r": 166,
    "g": 163,
    "b": 33
  },
  "hsl": {
    "h": 58.647,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.69618,
    "c": 0.14099,
    "h": 108.2
  },
  "luminance": 0.34411
}

Semantic roles & 50–950 ramp

primary
#A6A321
secondary
#5E60C5
accent
#42EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A321

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

Preview Lab → · Contrast checker → · Palette generator →

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