#A2A540#A2A540

#A2A540 is a light, vivid yellow. Relative luminance 0.350; OKLCH L 69.9% C 0.124 H 110.8°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#A2A540
RGBrgb(162, 165, 64)
HSLhsl(62, 44%, 45%)
HSVhsv(62, 61%, 65%)
CMYKcmyk(1.8%, 0%, 61.2%, 35.3%)
CIE-LABlab(65.72, -14.55, 50.49)
CIE-LCHlch(65.72, 52.55, 106.07°)
OKLaboklab(69.95% -0.0439 0.1155)
OKLCHoklch(69.95% 0.124 110.8)
XYZxyz(29.2817, 34.9625, 10.0554)
Luminance0.3496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2A540 #4340A5
analogous
#A57540 #A2A540 #70A540
triadic
#A2A540 #40A2A5 #A540A2
tetradic
#A2A540 #40A575 #4340A5 #A54070
square
#A2A540 #40A575 #4340A5 #A54070
split-complementary
#A2A540 #4070A5 #7540A5
monochromatic
#4B4D1E #77792F #A2A540 #BFC261 #D1D38D

Accessibility & contrast

On white

2.63
#A2A540 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#A2A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2A540
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2A540#FFFFFF#000000##000000
##A2A5401.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19E34
Deuteranopia (green-blind)
#B2A146
Tritanopia (blue-blind)
#AD9B90
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #a2a540;
/* rgb */ color: rgb(162, 165, 64);
/* oklch */ color: oklch(69.9% 0.124 110.8);
Tailwind
colors: {
  custom: {
    50: '#c0bf79',
    500: '#a2a540',
    950: '#000000',
  },
}
SCSS
$custom: #a2a540;
$custom-light: #c0bf79;
$custom-dark: #000000;
JSON
{
  "hex": "#a2a540",
  "rgb": {
    "r": 162,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 61.782,
    "s": 44.105,
    "l": 44.902
  },
  "oklch": {
    "l": 0.69946,
    "c": 0.12358,
    "h": 110.8
  },
  "luminance": 0.34962
}

Semantic roles & 50–950 ramp

primary
#A2A540
secondary
#8583BE
accent
#54D458
background
#FCFBF7
surface
#F8F7EE
border
#D1D0C9
text
#131209
muted
#82817B

Preview Lab

Preview with #A2A540

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

Preview Lab → · Contrast checker → · Palette generator →

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