#A1B421#A1B421

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

Color values

HEX#A1B421
RGBrgb(161, 180, 33)
HSLhsl(68, 69%, 42%)
HSVhsv(68, 82%, 71%)
CMYKcmyk(10.6%, 0%, 81.7%, 29.4%)
CIE-LABlab(69.70, -24.15, 65.51)
CIE-LCHlch(69.70, 69.82, 110.24°)
OKLaboklab(73.06% -0.0734 0.1422)
OKLCHoklch(73.06% 0.16 117.3)
XYZxyz(31.2945, 40.3298, 7.5744)
Luminance0.4033 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1B421 #3421B4
analogous
#B47E21 #A1B421 #58B421
triadic
#A1B421 #21A1B4 #B421A1
tetradic
#A1B421 #21B47E #3421B4 #B42158
square
#A1B421 #21B47E #3421B4 #B42158
split-complementary
#A1B421 #2158B4 #7E21B4
monochromatic
#444D0E #738018 #A1B421 #C5DA38 #D4E46B

Accessibility & contrast

On white

2.32
#A1B421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.07
#A1B421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #A1B421
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1B421#FFFFFF#000000##000000
##A1B4211.002.329.079.07
#FFFFFF2.321.0021.0021.00
#0000009.0721.001.001.00
##0000009.0721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #a1b421;
/* rgb */ color: rgb(161, 180, 33);
/* oklch */ color: oklch(73.1% 0.160 117.3);
Tailwind
colors: {
  custom: {
    50: '#c1ca6b',
    500: '#a1b421',
    950: '#000000',
  },
}
SCSS
$custom: #a1b421;
$custom-light: #c1ca6b;
$custom-dark: #000000;
JSON
{
  "hex": "#a1b421",
  "rgb": {
    "r": 161,
    "g": 180,
    "b": 33
  },
  "hsl": {
    "h": 67.755,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.73059,
    "c": 0.15999,
    "h": 117.3
  },
  "luminance": 0.40329
}

Semantic roles & 50–950 ramp

primary
#A1B421
secondary
#7467CA
accent
#3CEC53
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #A1B421

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

Preview Lab → · Contrast checker → · Palette generator →

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