#A6A42D#A6A42D

#A6A42D 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#A6A42D
RGBrgb(166, 164, 45)
HSLhsl(59, 57%, 41%)
HSVhsv(59, 73%, 65%)
CMYKcmyk(0%, 1.2%, 72.9%, 34.9%)
CIE-LABlab(65.63, -13.42, 58.19)
CIE-LCHlch(65.63, 59.72, 102.98°)
OKLaboklab(69.91% -0.0429 0.1286)
OKLCHoklch(69.91% 0.136 108.5)
XYZxyz(29.4761, 34.8483, 7.6558)
Luminance0.3485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A42D #2D2FA6
analogous
#A6682D #A6A42D #6CA62D
triadic
#A6A42D #2DA6A4 #A42DA6
tetradic
#A6A42D #2DA668 #2D2FA6 #A62D6C
square
#A6A42D #2DA668 #2D2FA6 #A62D6C
split-complementary
#A6A42D #2D6CA6 #682DA6
monochromatic
#464513 #767420 #A6A42D #CCCA44 #D9D874

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A6A42D#FFFFFF#000000##000000
##A6A42D1.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)
#B29D16
Deuteranopia (green-blind)
#B3A136
Tritanopia (blue-blind)
#B2998D
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a6a42d;
/* rgb */ color: rgb(166, 164, 45);
/* oklch */ color: oklch(69.9% 0.136 108.5);
Tailwind
colors: {
  custom: {
    50: '#c4be6f',
    500: '#a6a42d',
    950: '#000000',
  },
}
SCSS
$custom: #a6a42d;
$custom-light: #c4be6f;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a42d",
  "rgb": {
    "r": 166,
    "g": 164,
    "b": 45
  },
  "hsl": {
    "h": 59.008,
    "s": 57.346,
    "l": 41.373
  },
  "oklch": {
    "l": 0.6991,
    "c": 0.13553,
    "h": 108.5
  },
  "luminance": 0.34847
}

Semantic roles & 50–950 ramp

primary
#A6A42D
secondary
#6E6FC1
accent
#4AE147
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A6A42D

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

Preview Lab → · Contrast checker → · Palette generator →

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