#AFA571#AFA571

#AFA571 is a light, moderate yellow. Relative luminance 0.372; OKLCH L 71.8% C 0.071 H 98.6°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#AFA571
RGBrgb(175, 165, 113)
HSLhsl(50, 28%, 56%)
HSVhsv(50, 35%, 69%)
CMYKcmyk(0%, 5.7%, 35.4%, 31.4%)
CIE-LABlab(67.44, -4.32, 28.30)
CIE-LCHlch(67.44, 28.62, 98.67°)
OKLaboklab(71.78% -0.0106 0.0701)
OKLCHoklch(71.78% 0.071 98.6)
XYZxyz(34.1155, 37.2174, 21.0061)
Luminance0.3722 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA571 #717BAF
analogous
#AF8671 #AFA571 #9AAF71
triadic
#AFA571 #71AFA5 #A571AF
tetradic
#AFA571 #71AF86 #717BAF #AF719A
square
#AFA571 #71AF86 #717BAF #AF719A
split-complementary
#AFA571 #719AAF #8671AF
monochromatic
#6A623C #918752 #AFA571 #C5BE98 #DBD7BF

Accessibility & contrast

On white

2.49
#AFA571 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#AFA571 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA571
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA571#FFFFFF#000000##000000
##AFA5711.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#AFA26D
Deuteranopia (green-blind)
#B2A673
Tritanopia (blue-blind)
#B89E98
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #afa571;
/* rgb */ color: rgb(175, 165, 113);
/* oklch */ color: oklch(71.8% 0.071 98.6);
Tailwind
colors: {
  custom: {
    50: '#c8bf9a',
    500: '#afa571',
    950: '#000000',
  },
}
SCSS
$custom: #afa571;
$custom-light: #c8bf9a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa571",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 113
  },
  "hsl": {
    "h": 50.323,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.71782,
    "c": 0.07094,
    "h": 98.6
  },
  "luminance": 0.37216
}

Semantic roles & 50–950 ramp

primary
#AFA571
secondary
#B1B5CB
accent
#73C464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA571

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

Preview Lab → · Contrast checker → · Palette generator →

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