#A6A71F#A6A71F

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

Color values

HEX#A6A71F
RGBrgb(166, 167, 31)
HSLhsl(60, 69%, 39%)
HSVhsv(60, 81%, 65%)
CMYKcmyk(0.6%, 0%, 81.4%, 34.5%)
CIE-LABlab(66.40, -15.53, 63.33)
CIE-LCHlch(66.40, 65.20, 103.78°)
OKLaboklab(70.5% -0.05 0.1369)
OKLCHoklch(70.5% 0.146 110.1)
XYZxyz(29.7931, 35.8443, 6.6453)
Luminance0.3584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A71F #201FA7
analogous
#A7641F #A6A71F #62A71F
triadic
#A6A71F #1FA6A7 #A71FA6
tetradic
#A6A71F #1FA764 #201FA7 #A71F62
square
#A6A71F #1FA764 #201FA7 #A71F62
split-complementary
#A6A71F #1F62A7 #641FA7
monochromatic
#3F400C #737315 #A6A71F #D6D82B #E0E15F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6A71F#FFFFFF#000000##000000
##A6A71F1.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)
#B6A32C
Tritanopia (blue-blind)
#B29C8F
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #a6a71f;
/* rgb */ color: rgb(166, 167, 31);
/* oklch */ color: oklch(70.5% 0.146 110.1);
Tailwind
colors: {
  custom: {
    50: '#c4c069',
    500: '#a6a71f',
    950: '#000000',
  },
}
SCSS
$custom: #a6a71f;
$custom-light: #c4c069;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a71f",
  "rgb": {
    "r": 166,
    "g": 167,
    "b": 31
  },
  "hsl": {
    "h": 60.441,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.70504,
    "c": 0.14575,
    "h": 110.1
  },
  "luminance": 0.35843
}

Semantic roles & 50–950 ramp

primary
#A6A71F
secondary
#5D5CC6
accent
#3CEC3E
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #A6A71F

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

Preview Lab → · Contrast checker → · Palette generator →

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