#AFA471#AFA471

#AFA471 is a light, moderate yellow. Relative luminance 0.369; OKLCH L 71.6% C 0.070 H 97.5°. Best body text is #000000 at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#AFA471
RGBrgb(175, 164, 113)
HSLhsl(49, 28%, 56%)
HSVhsv(49, 35%, 69%)
CMYKcmyk(0%, 6.3%, 35.4%, 31.4%)
CIE-LABlab(67.17, -3.78, 27.94)
CIE-LCHlch(67.17, 28.20, 97.71°)
OKLaboklab(71.57% -0.0091 0.0693)
OKLCHoklch(71.57% 0.07 97.5)
XYZxyz(33.9358, 36.8581, 20.9463)
Luminance0.3686 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA471 #717CAF
analogous
#AF8571 #AFA471 #9BAF71
triadic
#AFA471 #71AFA4 #A471AF
tetradic
#AFA471 #71AF85 #717CAF #AF719B
square
#AFA471 #71AF85 #717CAF #AF719B
split-complementary
#AFA471 #719BAF #8571AF
monochromatic
#6A623C #918652 #AFA471 #C5BD98 #DBD6BF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA471#FFFFFF#000000##000000
##AFA4711.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)
#AEA16D
Deuteranopia (green-blind)
#B1A573
Tritanopia (blue-blind)
#B89D97
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #afa471;
/* rgb */ color: rgb(175, 164, 113);
/* oklch */ color: oklch(71.6% 0.070 97.5);
Tailwind
colors: {
  custom: {
    50: '#c8be9a',
    500: '#afa471',
    950: '#000000',
  },
}
SCSS
$custom: #afa471;
$custom-light: #c8be9a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa471",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 113
  },
  "hsl": {
    "h": 49.355,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.71569,
    "c": 0.0699,
    "h": 97.5
  },
  "luminance": 0.36857
}

Semantic roles & 50–950 ramp

primary
#AFA471
secondary
#B1B6CB
accent
#75C464
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA471

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

Preview Lab → · Contrast checker → · Palette generator →

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