#AFA572#AFA572

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

Color values

HEX#AFA572
RGBrgb(175, 165, 114)
HSLhsl(50, 28%, 57%)
HSVhsv(50, 35%, 69%)
CMYKcmyk(0%, 5.7%, 34.9%, 31.4%)
CIE-LABlab(67.46, -4.19, 27.78)
CIE-LCHlch(67.46, 28.10, 98.58°)
OKLaboklab(71.8% -0.0102 0.069)
OKLCHoklch(71.8% 0.07 98.4)
XYZxyz(34.1721, 37.2400, 21.3043)
Luminance0.3724 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA572 #727CAF
analogous
#AF8772 #AFA572 #9BAF72
triadic
#AFA572 #72AFA5 #A572AF
tetradic
#AFA572 #72AF87 #727CAF #AF729B
square
#AFA572 #72AF87 #727CAF #AF729B
split-complementary
#AFA572 #729BAF #8772AF
monochromatic
#6A633C #918752 #AFA572 #C5BE99 #DBD7C0

Accessibility & contrast

On white

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

On black

8.45
#AFA572 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA572
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA572#FFFFFF#000000##000000
##AFA5721.002.498.458.45
#FFFFFF2.491.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa572;
/* rgb */ color: rgb(175, 165, 114);
/* oklch */ color: oklch(71.8% 0.070 98.4);
Tailwind
colors: {
  custom: {
    50: '#c8bf9b',
    500: '#afa572',
    950: '#000000',
  },
}
SCSS
$custom: #afa572;
$custom-light: #c8bf9b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa572",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 114
  },
  "hsl": {
    "h": 50.164,
    "s": 27.602,
    "l": 56.667
  },
  "oklch": {
    "l": 0.71801,
    "c": 0.06972,
    "h": 98.4
  },
  "luminance": 0.37239
}

Semantic roles & 50–950 ramp

primary
#AFA572
secondary
#B2B6CB
accent
#74C464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA572

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

Preview Lab → · Contrast checker → · Palette generator →

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