#A6A42F#A6A42F

#A6A42F is a light, vivid yellow. Relative luminance 0.349; OKLCH L 69.9% C 0.134 H 108.4°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#A6A42F
RGBrgb(166, 164, 47)
HSLhsl(59, 56%, 42%)
HSVhsv(59, 72%, 65%)
CMYKcmyk(0%, 1.2%, 71.7%, 34.9%)
CIE-LABlab(65.64, -13.32, 57.48)
CIE-LCHlch(65.64, 59.00, 103.05°)
OKLaboklab(69.92% -0.0425 0.1274)
OKLCHoklch(69.92% 0.134 108.4)
XYZxyz(29.5155, 34.8641, 7.8634)
Luminance0.3486 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A42F #2F31A6
analogous
#A6692F #A6A42F #6CA62F
triadic
#A6A42F #2FA6A4 #A42FA6
tetradic
#A6A42F #2FA669 #2F31A6 #A62F6C
square
#A6A42F #2FA669 #2F31A6 #A62F6C
split-complementary
#A6A42F #2F6CA6 #692FA6
monochromatic
#474614 #767521 #A6A42F #CBC947 #D8D777

Accessibility & contrast

On white

2.63
#A6A42F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#A6A42F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A42F
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A42F#FFFFFF#000000##000000
##A6A42F1.002.637.977.97
#FFFFFF2.631.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29D1A
Deuteranopia (green-blind)
#B3A138
Tritanopia (blue-blind)
#B2998D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a6a42f;
/* rgb */ color: rgb(166, 164, 47);
/* oklch */ color: oklch(69.9% 0.134 108.4);
Tailwind
colors: {
  custom: {
    50: '#c4be70',
    500: '#a6a42f',
    950: '#000000',
  },
}
SCSS
$custom: #a6a42f;
$custom-light: #c4be70;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a42f",
  "rgb": {
    "r": 166,
    "g": 164,
    "b": 47
  },
  "hsl": {
    "h": 58.992,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.69924,
    "c": 0.13429,
    "h": 108.4
  },
  "luminance": 0.34863
}

Semantic roles & 50–950 ramp

primary
#A6A42F
secondary
#7072C1
accent
#4BDF49
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A6A42F

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

Preview Lab → · Contrast checker → · Palette generator →

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