#A2B221#A2B221

#A2B221 is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.7% C 0.157 H 116.2°. Best body text is #000000 at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#A2B221
RGBrgb(162, 178, 33)
HSLhsl(67, 69%, 41%)
HSVhsv(67, 81%, 70%)
CMYKcmyk(9%, 0%, 81.5%, 30.2%)
CIE-LABlab(69.21, -22.74, 65.11)
CIE-LCHlch(69.21, 68.96, 109.25°)
OKLaboklab(72.68% -0.0696 0.1412)
OKLCHoklch(72.68% 0.157 116.2)
XYZxyz(31.0961, 39.6324, 7.4503)
Luminance0.3963 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A2B221 #3121B2
analogous
#B27A21 #A2B221 #5AB221
triadic
#A2B221 #21A2B2 #B221A2
tetradic
#A2B221 #21B27A #3121B2 #B2215A
square
#A2B221 #21B27A #3121B2 #B2215A
split-complementary
#A2B221 #215AB2 #7A21B2
monochromatic
#444B0E #737E17 #A2B221 #C8DA36 #D6E36A

Accessibility & contrast

On white

2.35
#A2B221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.93
#A2B221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A2B221
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A2B221#FFFFFF#000000##000000
##A2B2211.002.358.938.93
#FFFFFF2.351.0021.0021.00
#0000008.9321.001.001.00
##0000008.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA800
Deuteranopia (green-blind)
#BEAA30
Tritanopia (blue-blind)
#ADA798
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #a2b221;
/* rgb */ color: rgb(162, 178, 33);
/* oklch */ color: oklch(72.7% 0.157 116.2);
Tailwind
colors: {
  custom: {
    50: '#c1c86b',
    500: '#a2b221',
    950: '#000000',
  },
}
SCSS
$custom: #a2b221;
$custom-light: #c1c86b;
$custom-dark: #000000;
JSON
{
  "hex": "#a2b221",
  "rgb": {
    "r": 162,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 66.621,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72678,
    "c": 0.15747,
    "h": 116.2
  },
  "luminance": 0.39632
}

Semantic roles & 50–950 ramp

primary
#A2B221
secondary
#7166C9
accent
#3CEC50
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A2B221

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

Preview Lab → · Contrast checker → · Palette generator →

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