#AFA172#AFA172

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

Color values

HEX#AFA172
RGBrgb(175, 161, 114)
HSLhsl(46, 28%, 57%)
HSVhsv(46, 35%, 69%)
CMYKcmyk(0%, 8%, 34.9%, 31.4%)
CIE-LABlab(66.38, -2.04, 26.36)
CIE-LCHlch(66.38, 26.44, 94.43°)
OKLaboklab(70.95% -0.004 0.0656)
OKLCHoklch(70.95% 0.066 93.5)
XYZxyz(33.4618, 35.8196, 21.0675)
Luminance0.3582 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA172 #7280AF
analogous
#AF8372 #AFA172 #9FAF72
triadic
#AFA172 #72AFA1 #A172AF
tetradic
#AFA172 #72AF83 #7280AF #AF729F
square
#AFA172 #72AF83 #7280AF #AF729F
split-complementary
#AFA172 #729FAF #8372AF
monochromatic
#6A603C #918352 #AFA172 #C5BB99 #DBD5C0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA172#FFFFFF#000000##000000
##AFA1721.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)
#AB9F6F
Deuteranopia (green-blind)
#AEA374
Tritanopia (blue-blind)
#B89A95
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #afa172;
/* rgb */ color: rgb(175, 161, 114);
/* oklch */ color: oklch(71.0% 0.066 93.5);
Tailwind
colors: {
  custom: {
    50: '#c8bc9b',
    500: '#afa172',
    950: '#000000',
  },
}
SCSS
$custom: #afa172;
$custom-light: #c8bc9b;
$custom-dark: #000000;
JSON
{
  "hex": "#afa172",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 114
  },
  "hsl": {
    "h": 46.23,
    "s": 27.602,
    "l": 56.667
  },
  "oklch": {
    "l": 0.70951,
    "c": 0.06575,
    "h": 93.5
  },
  "luminance": 0.35819
}

Semantic roles & 50–950 ramp

primary
#AFA172
secondary
#B2B8CB
accent
#7AC464
background
#FCFBF9
surface
#F8F6F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA172

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

Preview Lab → · Contrast checker → · Palette generator →

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