#A6A040#A6A040

#A6A040 is a light, moderate yellow. Relative luminance 0.336; OKLCH L 69.2% C 0.118 H 105.7°. Best body text is #000000 at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#A6A040
RGBrgb(166, 160, 64)
HSLhsl(56, 44%, 45%)
HSVhsv(56, 61%, 65%)
CMYKcmyk(0%, 3.6%, 61.4%, 34.9%)
CIE-LABlab(64.66, -10.20, 49.44)
CIE-LCHlch(64.66, 50.48, 101.66°)
OKLaboklab(69.18% -0.0318 0.1132)
OKLCHoklch(69.18% 0.118 105.7)
XYZxyz(29.2231, 33.6197, 9.7994)
Luminance0.3362 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6A040 #4046A6
analogous
#A66D40 #A6A040 #79A640
triadic
#A6A040 #40A6A0 #A040A6
tetradic
#A6A040 #40A66D #4046A6 #A64079
square
#A6A040 #40A66D #4046A6 #A64079
split-complementary
#A6A040 #4079A6 #6D40A6
monochromatic
#4E4B1E #7A752F #A6A040 #C2BC61 #D3CF8D

Accessibility & contrast

On white

2.72
#A6A040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.72
#A6A040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A6A040
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6A040#FFFFFF#000000##000000
##A6A0401.002.727.727.72
#FFFFFF2.721.0021.0021.00
#0000007.7221.001.001.00
##0000007.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AD9A35
Deuteranopia (green-blind)
#AF9F45
Tritanopia (blue-blind)
#B2968C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a6a040;
/* rgb */ color: rgb(166, 160, 64);
/* oklch */ color: oklch(69.2% 0.118 105.7);
Tailwind
colors: {
  custom: {
    50: '#c3bb79',
    500: '#a6a040',
    950: '#000000',
  },
}
SCSS
$custom: #a6a040;
$custom-light: #c3bb79;
$custom-dark: #000000;
JSON
{
  "hex": "#a6a040",
  "rgb": {
    "r": 166,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 56.471,
    "s": 44.348,
    "l": 45.098
  },
  "oklch": {
    "l": 0.69182,
    "c": 0.11758,
    "h": 105.7
  },
  "luminance": 0.33619
}

Semantic roles & 50–950 ramp

primary
#A6A040
secondary
#8487BE
accent
#5BD454
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131109
muted
#82807B

Preview Lab

Preview with #A6A040

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

Preview Lab → · Contrast checker → · Palette generator →

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