#AFA171#AFA171

#AFA171 is a light, moderate yellow. Relative luminance 0.358; OKLCH L 70.9% C 0.067 H 93.8°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#AFA171
RGBrgb(175, 161, 113)
HSLhsl(46, 28%, 56%)
HSVhsv(46, 35%, 69%)
CMYKcmyk(0%, 8%, 35.4%, 31.4%)
CIE-LABlab(66.36, -2.17, 26.88)
CIE-LCHlch(66.36, 26.97, 94.61°)
OKLaboklab(70.93% -0.0044 0.0668)
OKLCHoklch(70.93% 0.067 93.8)
XYZxyz(33.4052, 35.7970, 20.7694)
Luminance0.3580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA171 #717FAF
analogous
#AF8271 #AFA171 #9EAF71
triadic
#AFA171 #71AFA1 #A171AF
tetradic
#AFA171 #71AF82 #717FAF #AF719E
square
#AFA171 #71AF82 #717FAF #AF719E
split-complementary
#AFA171 #719EAF #8271AF
monochromatic
#6A5F3C #918352 #AFA171 #C5BB98 #DBD5BF

Accessibility & contrast

On white

2.57
#AFA171 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.16
#AFA171 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA171
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA171#FFFFFF#000000##000000
##AFA1711.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#AB9F6E
Deuteranopia (green-blind)
#AFA373
Tritanopia (blue-blind)
#B89A95
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa171;
/* rgb */ color: rgb(175, 161, 113);
/* oklch */ color: oklch(70.9% 0.067 93.8);
Tailwind
colors: {
  custom: {
    50: '#c8bc9a',
    500: '#afa171',
    950: '#000000',
  },
}
SCSS
$custom: #afa171;
$custom-light: #c8bc9a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa171",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 113
  },
  "hsl": {
    "h": 46.452,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.70932,
    "c": 0.06697,
    "h": 93.8
  },
  "luminance": 0.35796
}

Semantic roles & 50–950 ramp

primary
#AFA171
secondary
#B1B7CB
accent
#79C464
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA171

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

Preview Lab → · Contrast checker → · Palette generator →

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