#AFA621#AFA621

#AFA621 is a light, vivid yellow. Relative luminance 0.365; OKLCH L 71.1% C 0.142 H 105.3°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA621
RGBrgb(175, 166, 33)
HSLhsl(56, 68%, 41%)
HSVhsv(56, 81%, 69%)
CMYKcmyk(0%, 5.1%, 81.1%, 31.4%)
CIE-LABlab(66.90, -10.97, 63.50)
CIE-LCHlch(66.90, 64.44, 99.80°)
OKLaboklab(71.09% -0.0376 0.1372)
OKLCHoklch(71.09% 0.142 105.3)
XYZxyz(31.5913, 36.4975, 6.8192)
Luminance0.3650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA621 #212AAF
analogous
#AF5F21 #AFA621 #71AF21
triadic
#AFA621 #21AFA6 #A621AF
tetradic
#AFA621 #21AF5F #212AAF #AF2171
square
#AFA621 #21AF5F #212AAF #AF2171
split-complementary
#AFA621 #2171AF #5F21AF
monochromatic
#48440E #7C7517 #AFA621 #D9CE34 #E3DB68

Accessibility & contrast

On white

2.53
#AFA621 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#AFA621 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA621
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA621#FFFFFF#000000##000000
##AFA6211.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A000
Deuteranopia (green-blind)
#B8A52D
Tritanopia (blue-blind)
#BD9A8E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa621;
/* rgb */ color: rgb(175, 166, 33);
/* oklch */ color: oklch(71.1% 0.142 105.3);
Tailwind
colors: {
  custom: {
    50: '#cbc06a',
    500: '#afa621',
    950: '#000000',
  },
}
SCSS
$custom: #afa621;
$custom-light: #cbc06a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa621",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 33
  },
  "hsl": {
    "h": 56.197,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.71089,
    "c": 0.14231,
    "h": 105.3
  },
  "luminance": 0.36496
}

Semantic roles & 50–950 ramp

primary
#AFA621
secondary
#646AC8
accent
#48EB3D
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA621

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

Preview Lab → · Contrast checker → · Palette generator →

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