#A2A240#A2A240

#A2A240 is a light, vivid yellow. Relative luminance 0.339; OKLCH L 69.3% C 0.120 H 109.2°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#A2A240
RGBrgb(162, 162, 64)
HSLhsl(60, 43%, 44%)
HSVhsv(60, 60%, 64%)
CMYKcmyk(0%, 0%, 60.5%, 36.5%)
CIE-LABlab(64.88, -12.99, 49.58)
CIE-LCHlch(64.88, 51.25, 104.68°)
OKLaboklab(69.27% -0.0395 0.1136)
OKLCHoklch(69.27% 0.12 109.2)
XYZxyz(28.7469, 33.8930, 9.8772)
Luminance0.3389 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2A240 #4040A2
analogous
#A27140 #A2A240 #71A240
triadic
#A2A240 #40A2A2 #A240A2
tetradic
#A2A240 #40A271 #4040A2 #A24071
square
#A2A240 #40A271 #4040A2 #A24071
split-complementary
#A2A240 #4071A2 #7140A2
monochromatic
#4A4A1D #76762F #A2A240 #C0C05F #D1D18B

Accessibility & contrast

On white

2.70
#A2A240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#A2A240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2A240
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2A240#FFFFFF#000000##000000
##A2A2401.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9C35
Deuteranopia (green-blind)
#B09F46
Tritanopia (blue-blind)
#AD988D
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a2a240;
/* rgb */ color: rgb(162, 162, 64);
/* oklch */ color: oklch(69.3% 0.120 109.2);
Tailwind
colors: {
  custom: {
    50: '#c0bd79',
    500: '#a2a240',
    950: '#000000',
  },
}
SCSS
$custom: #a2a240;
$custom-light: #c0bd79;
$custom-dark: #000000;
JSON
{
  "hex": "#a2a240",
  "rgb": {
    "r": 162,
    "g": 162,
    "b": 64
  },
  "hsl": {
    "h": 60,
    "s": 43.363,
    "l": 44.314
  },
  "oklch": {
    "l": 0.69274,
    "c": 0.12025,
    "h": 109.2
  },
  "luminance": 0.33892
}

Semantic roles & 50–950 ramp

primary
#A2A240
secondary
#8282BC
accent
#55D355
background
#FCFBF7
surface
#F8F6EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A2A240

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

Preview Lab → · Contrast checker → · Palette generator →

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