#A2A040#A2A040

#A2A040 is a light, moderate yellow. Relative luminance 0.332; OKLCH L 68.8% C 0.118 H 108.0°. Best body text is #000000 at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#A2A040
RGBrgb(162, 160, 64)
HSLhsl(59, 43%, 44%)
HSVhsv(59, 60%, 64%)
CMYKcmyk(0%, 1.2%, 60.5%, 36.5%)
CIE-LABlab(64.32, -11.94, 48.97)
CIE-LCHlch(64.32, 50.40, 103.70°)
OKLaboklab(68.83% -0.0365 0.1123)
OKLCHoklch(68.83% 0.118 108)
XYZxyz(28.3974, 33.1940, 9.7607)
Luminance0.3319 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2A040 #4042A2
analogous
#A26F40 #A2A040 #73A240
triadic
#A2A040 #40A2A0 #A040A2
tetradic
#A2A040 #40A26F #4042A2 #A24073
square
#A2A040 #40A26F #4042A2 #A24073
split-complementary
#A2A040 #4073A2 #6F40A2
monochromatic
#4A491D #76752F #A2A040 #C0BE5F #D1D08B

Accessibility & contrast

On white

2.75
#A2A040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.64
#A2A040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2A040
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2A040#FFFFFF#000000##000000
##A2A0401.002.757.647.64
#FFFFFF2.751.0021.0021.00
#0000007.6421.001.001.00
##0000007.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AC9A35
Deuteranopia (green-blind)
#AE9E46
Tritanopia (blue-blind)
#AD968C
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #a2a040;
/* rgb */ color: rgb(162, 160, 64);
/* oklch */ color: oklch(68.8% 0.118 108.0);
Tailwind
colors: {
  custom: {
    50: '#c0bb79',
    500: '#a2a040',
    950: '#000000',
  },
}
SCSS
$custom: #a2a040;
$custom-light: #c0bb79;
$custom-dark: #000000;
JSON
{
  "hex": "#a2a040",
  "rgb": {
    "r": 162,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 58.776,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.68827,
    "c": 0.11808,
    "h": 108
  },
  "luminance": 0.33193
}

Semantic roles & 50–950 ramp

primary
#A2A040
secondary
#8283BC
accent
#57D355
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131109
muted
#82807B

Preview Lab

Preview with #A2A040

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

Preview Lab → · Contrast checker → · Palette generator →

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