#A2A231#A2A231

#A2A231 is a light, vivid yellow. Relative luminance 0.337; OKLCH L 69.1% C 0.132 H 109.4°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#A2A231
RGBrgb(162, 162, 49)
HSLhsl(60, 54%, 41%)
HSVhsv(60, 70%, 64%)
CMYKcmyk(0%, 0%, 69.8%, 36.5%)
CIE-LABlab(64.76, -13.93, 55.74)
CIE-LCHlch(64.76, 57.45, 104.03°)
OKLaboklab(69.14% -0.0437 0.1242)
OKLCHoklch(69.14% 0.132 109.4)
XYZxyz(28.3760, 33.7446, 7.9237)
Luminance0.3374 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2A231 #3131A2
analogous
#A26A31 #A2A231 #6AA231
triadic
#A2A231 #31A2A2 #A231A2
tetradic
#A2A231 #31A26A #3131A2 #A2316A
square
#A2A231 #31A26A #3131A2 #A2316A
split-complementary
#A2A231 #316AA2 #6A31A2
monochromatic
#444415 #737323 #A2A231 #C8C848 #D6D677

Accessibility & contrast

On white

2.71
#A2A231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#A2A231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2A231
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2A231#FFFFFF#000000##000000
##A2A2311.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9B1F
Deuteranopia (green-blind)
#B09F39
Tritanopia (blue-blind)
#AD988C
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #a2a231;
/* rgb */ color: rgb(162, 162, 49);
/* oklch */ color: oklch(69.1% 0.132 109.4);
Tailwind
colors: {
  custom: {
    50: '#c1bd70',
    500: '#a2a231',
    950: '#000000',
  },
}
SCSS
$custom: #a2a231;
$custom-light: #c1bd70;
$custom-dark: #000000;
JSON
{
  "hex": "#a2a231",
  "rgb": {
    "r": 162,
    "g": 162,
    "b": 49
  },
  "hsl": {
    "h": 60,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.69141,
    "c": 0.1317,
    "h": 109.4
  },
  "luminance": 0.33744
}

Semantic roles & 50–950 ramp

primary
#A2A231
secondary
#7171BE
accent
#4BDD4B
background
#FCFBF7
surface
#F8F6ED
border
#D1D0C8
text
#131208
muted
#82817B

Preview Lab

Preview with #A2A231

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

Preview Lab → · Contrast checker → · Palette generator →

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