#A6A021#A6A021

#A6A021 is a light, vivid yellow. Relative luminance 0.334; OKLCH L 68.9% C 0.138 H 106.6°. Best body text is #000000 at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#A6A021
RGBrgb(166, 160, 33)
HSLhsl(57, 67%, 39%)
HSVhsv(57, 80%, 65%)
CMYKcmyk(0%, 3.6%, 80.1%, 34.9%)
CIE-LABlab(64.45, -11.83, 61.06)
CIE-LCHlch(64.45, 62.19, 100.96°)
OKLaboklab(68.95% -0.0396 0.1324)
OKLCHoklch(68.95% 0.138 106.6)
XYZxyz(28.5724, 33.3595, 6.3725)
Luminance0.3336 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A021 #2127A6
analogous
#A65E21 #A6A021 #6AA621
triadic
#A6A021 #21A6A0 #A021A6
tetradic
#A6A021 #21A65E #2127A6 #A6216A
square
#A6A021 #21A65E #2127A6 #A6216A
split-complementary
#A6A021 #216AA6 #5E21A6
monochromatic
#403E0D #736F17 #A6A021 #D6CE2F #E0DA62

Accessibility & contrast

On white

2.74
#A6A021 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.67
#A6A021 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A021
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A021#FFFFFF#000000##000000
##A6A0211.002.747.677.67
#FFFFFF2.741.0021.0021.00
#0000007.6721.001.001.00
##0000007.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A00
Deuteranopia (green-blind)
#B19E2C
Tritanopia (blue-blind)
#B39589
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #a6a021;
/* rgb */ color: rgb(166, 160, 33);
/* oklch */ color: oklch(68.9% 0.138 106.6);
Tailwind
colors: {
  custom: {
    50: '#c4bb69',
    500: '#a6a021',
    950: '#000000',
  },
}
SCSS
$custom: #a6a021;
$custom-light: #c4bb69;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a021",
  "rgb": {
    "r": 166,
    "g": 160,
    "b": 33
  },
  "hsl": {
    "h": 57.293,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.68949,
    "c": 0.13818,
    "h": 106.6
  },
  "luminance": 0.33358
}

Semantic roles & 50–950 ramp

primary
#A6A021
secondary
#5E63C5
accent
#46EA3E
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131107
muted
#82807A

Preview Lab

Preview with #A6A021

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

Preview Lab → · Contrast checker → · Palette generator →

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