#A6A42A#A6A42A

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

Color values

HEX#A6A42A
RGBrgb(166, 164, 42)
HSLhsl(59, 60%, 41%)
HSVhsv(59, 75%, 65%)
CMYKcmyk(0%, 1.2%, 74.7%, 34.9%)
CIE-LABlab(65.61, -13.55, 59.23)
CIE-LCHlch(65.61, 60.76, 102.89°)
OKLaboklab(69.89% -0.0436 0.1302)
OKLCHoklch(69.89% 0.137 108.5)
XYZxyz(29.4204, 34.8260, 7.3624)
Luminance0.3483 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A42A #2A2CA6
analogous
#A6662A #A6A42A #6AA62A
triadic
#A6A42A #2AA6A4 #A42AA6
tetradic
#A6A42A #2AA666 #2A2CA6 #A62A6A
square
#A6A42A #2AA666 #2A2CA6 #A62A6A
split-complementary
#A6A42A #2A6AA6 #662AA6
monochromatic
#444311 #75741E #A6A42A #CECC3F #DBD970

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6A42A#FFFFFF#000000##000000
##A6A42A1.002.647.977.97
#FFFFFF2.641.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a6a42a;
/* rgb */ color: rgb(166, 164, 42);
/* oklch */ color: oklch(69.9% 0.137 108.5);
Tailwind
colors: {
  custom: {
    50: '#c4be6d',
    500: '#a6a42a',
    950: '#000000',
  },
}
SCSS
$custom: #a6a42a;
$custom-light: #c4be6d;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a42a",
  "rgb": {
    "r": 166,
    "g": 164,
    "b": 42
  },
  "hsl": {
    "h": 59.032,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.69891,
    "c": 0.13731,
    "h": 108.5
  },
  "luminance": 0.34825
}

Semantic roles & 50–950 ramp

primary
#A6A42A
secondary
#6A6BC2
accent
#48E345
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A6A42A

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

Preview Lab → · Contrast checker → · Palette generator →

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