#AF9721#AF9721

#AF9721 is a light, vivid yellow. Relative luminance 0.314; OKLCH L 67.8% C 0.130 H 96.7°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#AF9721
RGBrgb(175, 151, 33)
HSLhsl(50, 68%, 41%)
HSVhsv(50, 81%, 69%)
CMYKcmyk(0%, 13.7%, 81.1%, 31.4%)
CIE-LABlab(62.81, -3.00, 59.93)
CIE-LCHlch(62.81, 60.00, 92.87°)
OKLaboklab(67.84% -0.0152 0.1295)
OKLCHoklch(67.84% 0.13 96.7)
XYZxyz(29.0219, 31.3586, 5.9627)
Luminance0.3136 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF9721 #2139AF
analogous
#AF5021 #AF9721 #80AF21
triadic
#AF9721 #21AF97 #9721AF
tetradic
#AF9721 #21AF50 #2139AF #AF2180
square
#AF9721 #21AF50 #2139AF #AF2180
split-complementary
#AF9721 #2180AF #5021AF
monochromatic
#483E0E #7C6B17 #AF9721 #D9BD34 #E3CE68

Accessibility & contrast

On white

2.89
#AF9721 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.27
#AF9721 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF9721
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF9721#FFFFFF#000000##000000
##AF97211.002.897.277.27
#FFFFFF2.891.0021.0021.00
#0000007.2721.001.001.00
##0000007.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#A79300
Deuteranopia (green-blind)
#AD9B2A
Tritanopia (blue-blind)
#BD8B81
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #af9721;
/* rgb */ color: rgb(175, 151, 33);
/* oklch */ color: oklch(67.8% 0.130 96.7);
Tailwind
colors: {
  custom: {
    50: '#cbb568',
    500: '#af9721',
    950: '#000000',
  },
}
SCSS
$custom: #af9721;
$custom-light: #cbb568;
$custom-dark: #000000;
JSON
{
  "hex": "#af9721",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 33
  },
  "hsl": {
    "h": 49.859,
    "s": 68.269,
    "l": 40.784
  },
  "oklch": {
    "l": 0.67841,
    "c": 0.13041,
    "h": 96.7
  },
  "luminance": 0.31357
}

Semantic roles & 50–950 ramp

primary
#AF9721
secondary
#6475C8
accent
#5AEB3D
background
#FDFBF6
surface
#FAF6EB
border
#D3D0C6
text
#141107
muted
#83807A

Preview Lab

Preview with #AF9721

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

Preview Lab → · Contrast checker → · Palette generator →

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