#A6A421#A6A421

#A6A421 is a light, vivid yellow. Relative luminance 0.348; OKLCH L 69.8% C 0.142 H 108.6°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#A6A421
RGBrgb(166, 164, 33)
HSLhsl(59, 67%, 39%)
HSVhsv(59, 80%, 65%)
CMYKcmyk(0%, 1.2%, 80.1%, 34.9%)
CIE-LABlab(65.57, -13.91, 62.04)
CIE-LCHlch(65.57, 63.58, 102.64°)
OKLaboklab(69.84% -0.0454 0.1345)
OKLCHoklch(69.84% 0.142 108.6)
XYZxyz(29.2770, 34.7687, 6.6074)
Luminance0.3477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A421 #2123A6
analogous
#A66221 #A6A421 #66A621
triadic
#A6A421 #21A6A4 #A421A6
tetradic
#A6A421 #21A662 #2123A6 #A62166
square
#A6A421 #21A662 #2123A6 #A62166
split-complementary
#A6A421 #2166A6 #6221A6
monochromatic
#403F0D #737217 #A6A421 #D6D32F #E0DE62

Accessibility & contrast

On white

2.64
#A6A421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#A6A421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A421
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A421#FFFFFF#000000##000000
##A6A4211.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D00
Deuteranopia (green-blind)
#B4A12D
Tritanopia (blue-blind)
#B2998C
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a6a421;
/* rgb */ color: rgb(166, 164, 33);
/* oklch */ color: oklch(69.8% 0.142 108.6);
Tailwind
colors: {
  custom: {
    50: '#c4be69',
    500: '#a6a421',
    950: '#000000',
  },
}
SCSS
$custom: #a6a421;
$custom-light: #c4be69;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a421",
  "rgb": {
    "r": 166,
    "g": 164,
    "b": 33
  },
  "hsl": {
    "h": 59.098,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.69841,
    "c": 0.14195,
    "h": 108.6
  },
  "luminance": 0.34768
}

Semantic roles & 50–950 ramp

primary
#A6A421
secondary
#5E60C5
accent
#41EA3E
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A421

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

Preview Lab → · Contrast checker → · Palette generator →

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