#AFBD21#AFBD21

#AFBD21 is a light, vivid yellow. Relative luminance 0.456; OKLCH L 76.2% C 0.165 H 115.1°. Best body text is #000000 at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#AFBD21
RGBrgb(175, 189, 33)
HSLhsl(65, 70%, 44%)
HSVhsv(65, 83%, 74%)
CMYKcmyk(7.4%, 0%, 82.5%, 25.9%)
CIE-LABlab(73.30, -22.63, 69.03)
CIE-LCHlch(73.30, 72.64, 108.15°)
OKLaboklab(76.21% -0.0699 0.1492)
OKLCHoklch(76.21% 0.165 115.1)
XYZxyz(36.1524, 45.6196, 8.3396)
Luminance0.4562 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFBD21 #2F21BD
analogous
#BD7D21 #AFBD21 #61BD21
triadic
#AFBD21 #21AFBD #BD21AF
tetradic
#AFBD21 #21BD7D #2F21BD #BD2161
square
#AFBD21 #21BD7D #2F21BD #BD2161
split-complementary
#AFBD21 #2161BD #7D21BD
monochromatic
#4F550F #7F8918 #AFBD21 #CFDD3E #DCE672

Accessibility & contrast

On white

2.07
#AFBD21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.12
#AFBD21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFBD21
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFBD21#FFFFFF#000000##000000
##AFBD211.002.0710.1210.12
#FFFFFF2.071.0021.0021.00
#00000010.1221.001.001.00
##00000010.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#CBB300
Deuteranopia (green-blind)
#CAB532
Tritanopia (blue-blind)
#BBB1A1
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #afbd21;
/* rgb */ color: rgb(175, 189, 33);
/* oklch */ color: oklch(76.2% 0.165 115.1);
Tailwind
colors: {
  custom: {
    50: '#cbd06d',
    500: '#afbd21',
    950: '#000000',
  },
}
SCSS
$custom: #afbd21;
$custom-light: #cbd06d;
$custom-dark: #000000;
JSON
{
  "hex": "#afbd21",
  "rgb": {
    "r": 175,
    "g": 189,
    "b": 33
  },
  "hsl": {
    "h": 65.385,
    "s": 70.27,
    "l": 43.529
  },
  "oklch": {
    "l": 0.76208,
    "c": 0.16475,
    "h": 115.1
  },
  "luminance": 0.45619
}

Semantic roles & 50–950 ramp

primary
#AFBD21
secondary
#756DCD
accent
#3BED4B
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141408
muted
#83827B

Preview Lab

Preview with #AFBD21

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

Preview Lab → · Contrast checker → · Palette generator →

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