#A1B221#A1B221

#A1B221 is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.6% C 0.158 H 116.6°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#A1B221
RGBrgb(161, 178, 33)
HSLhsl(67, 69%, 41%)
HSVhsv(67, 81%, 70%)
CMYKcmyk(9.6%, 0%, 81.5%, 30.2%)
CIE-LABlab(69.13, -23.17, 65.01)
CIE-LCHlch(69.13, 69.02, 109.61°)
OKLaboklab(72.6% -0.0707 0.1411)
OKLCHoklch(72.6% 0.158 116.6)
XYZxyz(30.8937, 39.5281, 7.4408)
Luminance0.3953 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B221 #3221B2
analogous
#B27B21 #A1B221 #59B221
triadic
#A1B221 #21A1B2 #B221A1
tetradic
#A1B221 #21B27B #3221B2 #B22159
square
#A1B221 #21B27B #3221B2 #B22159
split-complementary
#A1B221 #2159B2 #7B21B2
monochromatic
#444B0E #727E17 #A1B221 #C7DA36 #D5E36A

Accessibility & contrast

On white

2.36
#A1B221 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#A1B221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1B221
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1B221#FFFFFF#000000##000000
##A1B2211.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a1b221;
/* rgb */ color: rgb(161, 178, 33);
/* oklch */ color: oklch(72.6% 0.158 116.6);
Tailwind
colors: {
  custom: {
    50: '#c1c86b',
    500: '#a1b221',
    950: '#000000',
  },
}
SCSS
$custom: #a1b221;
$custom-light: #c1c86b;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b221",
  "rgb": {
    "r": 161,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 67.034,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72599,
    "c": 0.15781,
    "h": 116.6
  },
  "luminance": 0.39528
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A1B221

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

Preview Lab → · Contrast checker → · Palette generator →

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