#A2A538#A2A538

#A2A538 is a light, vivid yellow. Relative luminance 0.349; OKLCH L 69.9% C 0.130 H 110.9°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#A2A538
RGBrgb(162, 165, 56)
HSLhsl(62, 49%, 43%)
HSVhsv(62, 66%, 65%)
CMYKcmyk(1.8%, 0%, 66.1%, 35.3%)
CIE-LABlab(65.65, -15.08, 53.85)
CIE-LCHlch(65.65, 55.92, 105.64°)
OKLaboklab(69.87% -0.0462 0.1214)
OKLCHoklch(69.87% 0.13 110.9)
XYZxyz(29.0701, 34.8779, 8.9414)
Luminance0.3488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2A538 #3B38A5
analogous
#A57138 #A2A538 #6BA538
triadic
#A2A538 #38A2A5 #A538A2
tetradic
#A2A538 #38A571 #3B38A5 #A5386B
square
#A2A538 #38A571 #3B38A5 #A5386B
split-complementary
#A2A538 #386BA5 #7138A5
monochromatic
#484A19 #757728 #A2A538 #C2C555 #D3D583

Accessibility & contrast

On white

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

On black

7.98
#A2A538 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2A538
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2A538#FFFFFF#000000##000000
##A2A5381.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29E29
Deuteranopia (green-blind)
#B2A13F
Tritanopia (blue-blind)
#AD9B8F
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #a2a538;
/* rgb */ color: rgb(162, 165, 56);
/* oklch */ color: oklch(69.9% 0.130 110.9);
Tailwind
colors: {
  custom: {
    50: '#c0bf75',
    500: '#a2a538',
    950: '#000000',
  },
}
SCSS
$custom: #a2a538;
$custom-light: #c0bf75;
$custom-dark: #000000;
JSON
{
  "hex": "#a2a538",
  "rgb": {
    "r": 162,
    "g": 165,
    "b": 56
  },
  "hsl": {
    "h": 61.651,
    "s": 49.321,
    "l": 43.333
  },
  "oklch": {
    "l": 0.69872,
    "c": 0.12992,
    "h": 110.9
  },
  "luminance": 0.34877
}

Semantic roles & 50–950 ramp

primary
#A2A538
secondary
#7C7ABE
accent
#4FD953
background
#FCFBF7
surface
#F8F7ED
border
#D1D0C8
text
#131209
muted
#82817B

Preview Lab

Preview with #A2A538

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

Preview Lab → · Contrast checker → · Palette generator →

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