#AFBB21#AFBB21

#AFBB21 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.8% C 0.163 H 114.4°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#AFBB21
RGBrgb(175, 187, 33)
HSLhsl(65, 70%, 43%)
HSVhsv(65, 82%, 73%)
CMYKcmyk(6.4%, 0%, 82.4%, 26.7%)
CIE-LABlab(72.74, -21.65, 68.55)
CIE-LCHlch(72.74, 71.88, 107.53°)
OKLaboklab(75.76% -0.0672 0.1481)
OKLCHoklch(75.76% 0.163 114.4)
XYZxyz(35.7252, 44.7651, 8.1971)
Luminance0.4476 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBB21 #2D21BB
analogous
#BB7A21 #AFBB21 #62BB21
triadic
#AFBB21 #21AFBB #BB21AF
tetradic
#AFBB21 #21BB7A #2D21BB #BB2162
square
#AFBB21 #21BB7A #2D21BB #BB2162
split-complementary
#AFBB21 #2162BB #7A21BB
monochromatic
#4E530F #7E8718 #AFBB21 #D0DD3D #DDE671

Accessibility & contrast

On white

2.11
#AFBB21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#AFBB21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBB21
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBB21#FFFFFF#000000##000000
##AFBB211.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#C9B431
Tritanopia (blue-blind)
#BBAFA0
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #afbb21;
/* rgb */ color: rgb(175, 187, 33);
/* oklch */ color: oklch(75.8% 0.163 114.4);
Tailwind
colors: {
  custom: {
    50: '#cbcf6d',
    500: '#afbb21',
    950: '#000000',
  },
}
SCSS
$custom: #afbb21;
$custom-light: #cbcf6d;
$custom-dark: #000000;
JSON
{
  "hex": "#afbb21",
  "rgb": {
    "r": 175,
    "g": 187,
    "b": 33
  },
  "hsl": {
    "h": 64.675,
    "s": 70,
    "l": 43.137
  },
  "oklch": {
    "l": 0.75758,
    "c": 0.16267,
    "h": 114.4
  },
  "luminance": 0.44764
}

Semantic roles & 50–950 ramp

primary
#AFBB21
secondary
#736BCC
accent
#3BED49
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141308
muted
#83827B

Preview Lab

Preview with #AFBB21

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

Preview Lab → · Contrast checker → · Palette generator →

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