#A6A42C#A6A42C

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

Color values

HEX#A6A42C
RGBrgb(166, 164, 44)
HSLhsl(59, 58%, 41%)
HSVhsv(59, 73%, 65%)
CMYKcmyk(0%, 1.2%, 73.5%, 34.9%)
CIE-LABlab(65.62, -13.46, 58.55)
CIE-LCHlch(65.62, 60.07, 102.95°)
OKLaboklab(69.9% -0.0432 0.1291)
OKLCHoklch(69.9% 0.136 108.5)
XYZxyz(29.4571, 34.8407, 7.5556)
Luminance0.3484 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A42C #2C2EA6
analogous
#A6672C #A6A42C #6BA62C
triadic
#A6A42C #2CA6A4 #A42CA6
tetradic
#A6A42C #2CA667 #2C2EA6 #A62C6B
square
#A6A42C #2CA667 #2C2EA6 #A62C6B
split-complementary
#A6A42C #2C6BA6 #672CA6
monochromatic
#454412 #76741F #A6A42C #CDCB42 #DAD873

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6A42C#FFFFFF#000000##000000
##A6A42C1.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)
#B29D14
Deuteranopia (green-blind)
#B4A135
Tritanopia (blue-blind)
#B2998D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a6a42c;
/* rgb */ color: rgb(166, 164, 44);
/* oklch */ color: oklch(69.9% 0.136 108.5);
Tailwind
colors: {
  custom: {
    50: '#c4be6e',
    500: '#a6a42c',
    950: '#000000',
  },
}
SCSS
$custom: #a6a42c;
$custom-light: #c4be6e;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a42c",
  "rgb": {
    "r": 166,
    "g": 164,
    "b": 44
  },
  "hsl": {
    "h": 59.016,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.69904,
    "c": 0.13614,
    "h": 108.5
  },
  "luminance": 0.3484
}

Semantic roles & 50–950 ramp

primary
#A6A42C
secondary
#6D6EC1
accent
#49E146
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #A6A42C

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

Preview Lab → · Contrast checker → · Palette generator →

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