#A6A71C#A6A71C

#A6A71C is a light, vivid yellow. Relative luminance 0.358; OKLCH L 70.5% C 0.147 H 110.1°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#A6A71C
RGBrgb(166, 167, 28)
HSLhsl(60, 71%, 38%)
HSVhsv(60, 83%, 65%)
CMYKcmyk(0.6%, 0%, 83.2%, 34.5%)
CIE-LABlab(66.39, -15.62, 64.10)
CIE-LCHlch(66.39, 65.98, 103.70°)
OKLaboklab(70.49% -0.0505 0.138)
OKLCHoklch(70.49% 0.147 110.1)
XYZxyz(29.7554, 35.8292, 6.4467)
Luminance0.3583 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A71C #1D1CA7
analogous
#A7631C #A6A71C #60A71C
triadic
#A6A71C #1CA6A7 #A71CA6
tetradic
#A6A71C #1CA763 #1D1CA7 #A71C60
square
#A6A71C #1CA763 #1D1CA7 #A71C60
split-complementary
#A6A71C #1C60A7 #631CA7
monochromatic
#3E3E0A #727313 #A6A71C #D9DB26 #E2E35A

Accessibility & contrast

On white

2.57
#A6A71C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#A6A71C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A71C
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A71C#FFFFFF#000000##000000
##A6A71C1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B59F00
Deuteranopia (green-blind)
#B6A32A
Tritanopia (blue-blind)
#B29C8E
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a6a71c;
/* rgb */ color: rgb(166, 167, 28);
/* oklch */ color: oklch(70.5% 0.147 110.1);
Tailwind
colors: {
  custom: {
    50: '#c4c068',
    500: '#a6a71c',
    950: '#000000',
  },
}
SCSS
$custom: #a6a71c;
$custom-light: #c4c068;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a71c",
  "rgb": {
    "r": 166,
    "g": 167,
    "b": 28
  },
  "hsl": {
    "h": 60.432,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.70491,
    "c": 0.14697,
    "h": 110.1
  },
  "luminance": 0.35828
}

Semantic roles & 50–950 ramp

primary
#A6A71C
secondary
#5958C7
accent
#3AEE3B
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A71C

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

Preview Lab → · Contrast checker → · Palette generator →

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