#AFCA21#AFCA21

#AFCA21 is a light, vivid yellow. Relative luminance 0.515; OKLCH L 79.2% C 0.179 H 119.2°. Best body text is #000000 at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#AFCA21
RGBrgb(175, 202, 33)
HSLhsl(70, 72%, 46%)
HSVhsv(70, 84%, 79%)
CMYKcmyk(13.4%, 0%, 83.7%, 20.8%)
CIE-LABlab(76.96, -28.91, 72.15)
CIE-LCHlch(76.96, 77.73, 111.83°)
OKLaboklab(79.15% -0.0871 0.1559)
OKLCHoklch(79.15% 0.179 119.2)
XYZxyz(39.0752, 51.4651, 9.3138)
Luminance0.5147 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFCA21 #3C21CA
analogous
#CA9021 #AFCA21 #5ACA21
triadic
#AFCA21 #21AFCA #CA21AF
tetradic
#AFCA21 #21CA90 #3C21CA #CA215A
square
#AFCA21 #21CA90 #3C21CA #CA215A
split-complementary
#AFCA21 #215ACA #9021CA
monochromatic
#546110 #819518 #AFCA21 #C8E147 #D8EA7C

Accessibility & contrast

On white

1.86
#AFCA21 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.29
#AFCA21 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFCA21
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFCA21#FFFFFF#000000##000000
##AFCA211.001.8611.2911.29
#FFFFFF1.861.0021.0021.00
#00000011.2921.001.001.00
##00000011.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#D8BE00
Deuteranopia (green-blind)
#D5BF35
Tritanopia (blue-blind)
#BABFAC
Achromatopsia (no color)
#BEBEBE

Design tokens & code

CSS
--color: #afca21;
/* rgb */ color: rgb(175, 202, 33);
/* oklch */ color: oklch(79.2% 0.179 119.2);
Tailwind
colors: {
  custom: {
    50: '#cbda6f',
    500: '#afca21',
    950: '#000000',
  },
}
SCSS
$custom: #afca21;
$custom-light: #cbda6f;
$custom-dark: #000000;
JSON
{
  "hex": "#afca21",
  "rgb": {
    "r": 175,
    "g": 202,
    "b": 33
  },
  "hsl": {
    "h": 69.586,
    "s": 71.915,
    "l": 46.078
  },
  "oklch": {
    "l": 0.79154,
    "c": 0.1786,
    "h": 119.2
  },
  "luminance": 0.51465
}

Semantic roles & 50–950 ramp

primary
#AFCA21
secondary
#2F246C
accent
#39EF56
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141408
muted
#83837D

Preview Lab

Preview with #AFCA21

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

Preview Lab → · Contrast checker → · Palette generator →

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