#AFA721#AFA721

#AFA721 is a light, vivid yellow. Relative luminance 0.369; OKLCH L 71.3% C 0.143 H 105.8°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#AFA721
RGBrgb(175, 167, 33)
HSLhsl(57, 68%, 41%)
HSVhsv(57, 81%, 69%)
CMYKcmyk(0%, 4.6%, 81.1%, 31.4%)
CIE-LABlab(67.17, -11.49, 63.74)
CIE-LCHlch(67.17, 64.77, 100.22°)
OKLaboklab(71.31% -0.0391 0.1378)
OKLCHoklch(71.31% 0.143 105.8)
XYZxyz(31.7738, 36.8624, 6.8800)
Luminance0.3686 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA721 #2129AF
analogous
#AF6021 #AFA721 #70AF21
triadic
#AFA721 #21AFA7 #A721AF
tetradic
#AFA721 #21AF60 #2129AF #AF2170
square
#AFA721 #21AF60 #2129AF #AF2170
split-complementary
#AFA721 #2170AF #6021AF
monochromatic
#48450E #7C7617 #AFA721 #D9D034 #E3DC68

Accessibility & contrast

On white

2.51
#AFA721 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.37
#AFA721 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA721
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA721#FFFFFF#000000##000000
##AFA7211.002.518.378.37
#FFFFFF2.511.0021.0021.00
#0000008.3721.001.001.00
##0000008.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B6A100
Deuteranopia (green-blind)
#B9A62D
Tritanopia (blue-blind)
#BC9B8F
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa721;
/* rgb */ color: rgb(175, 167, 33);
/* oklch */ color: oklch(71.3% 0.143 105.8);
Tailwind
colors: {
  custom: {
    50: '#cbc06a',
    500: '#afa721',
    950: '#000000',
  },
}
SCSS
$custom: #afa721;
$custom-light: #cbc06a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa721",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 33
  },
  "hsl": {
    "h": 56.62,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.71308,
    "c": 0.1432,
    "h": 105.8
  },
  "luminance": 0.36861
}

Semantic roles & 50–950 ramp

primary
#AFA721
secondary
#6469C8
accent
#47EB3D
background
#FDFBF6
surface
#FAF7EC
border
#D3D0C7
text
#141207
muted
#83817A

Preview Lab

Preview with #AFA721

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

Preview Lab → · Contrast checker → · Palette generator →

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