#A2B421#A2B421

#A2B421 is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.1% C 0.160 H 116.9°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#A2B421
RGBrgb(162, 180, 33)
HSLhsl(67, 69%, 42%)
HSVhsv(67, 82%, 71%)
CMYKcmyk(10%, 0%, 81.7%, 29.4%)
CIE-LABlab(69.78, -23.73, 65.60)
CIE-LCHlch(69.78, 69.76, 109.88°)
OKLaboklab(73.14% -0.0723 0.1423)
OKLCHoklch(73.14% 0.16 116.9)
XYZxyz(31.4969, 40.4341, 7.5839)
Luminance0.4043 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B421 #3321B4
analogous
#B47D21 #A2B421 #59B421
triadic
#A2B421 #21A2B4 #B421A2
tetradic
#A2B421 #21B47D #3321B4 #B42159
square
#A2B421 #21B47D #3321B4 #B42159
split-complementary
#A2B421 #2159B4 #7D21B4
monochromatic
#454D0E #738018 #A2B421 #C7DA38 #D5E46B

Accessibility & contrast

On white

2.31
#A2B421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#A2B421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B421
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B421#FFFFFF#000000##000000
##A2B4211.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#BFAB30
Tritanopia (blue-blind)
#ADA99A
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #a2b421;
/* rgb */ color: rgb(162, 180, 33);
/* oklch */ color: oklch(73.1% 0.160 116.9);
Tailwind
colors: {
  custom: {
    50: '#c1ca6b',
    500: '#a2b421',
    950: '#000000',
  },
}
SCSS
$custom: #a2b421;
$custom-light: #c1ca6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b421",
  "rgb": {
    "r": 162,
    "g": 180,
    "b": 33
  },
  "hsl": {
    "h": 67.347,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.73137,
    "c": 0.15964,
    "h": 116.9
  },
  "luminance": 0.40434
}

Semantic roles & 50–950 ramp

primary
#A2B421
secondary
#7367CA
accent
#3CEC51
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A2B421

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

Preview Lab → · Contrast checker → · Palette generator →

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