#AFA87A#AFA87A

#AFA87A is a light, moderate yellow. Relative luminance 0.385; OKLCH L 72.6% C 0.063 H 100.5°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#AFA87A
RGBrgb(175, 168, 122)
HSLhsl(52, 25%, 58%)
HSVhsv(52, 30%, 69%)
CMYKcmyk(0%, 4%, 30.3%, 31.4%)
CIE-LABlab(68.41, -4.77, 24.73)
CIE-LCHlch(68.41, 25.19, 100.92°)
OKLaboklab(72.6% -0.0115 0.062)
OKLCHoklch(72.6% 0.063 100.5)
XYZxyz(35.1949, 38.5251, 23.9907)
Luminance0.3852 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA87A #7A81AF
analogous
#AF8D7A #AFA87A #9BAF7A
triadic
#AFA87A #7AAFA8 #A87AAF
tetradic
#AFA87A #7AAF8D #7A81AF #AF7A9B
square
#AFA87A #7AAF8D #7A81AF #AF7A9B
split-complementary
#AFA87A #7A9BAF #8D7AAF
monochromatic
#6D6742 #938B59 #AFA87A #C6C1A0 #DDDAC6

Accessibility & contrast

On white

2.41
#AFA87A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#AFA87A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA87A
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA87A#FFFFFF#000000##000000
##AFA87A1.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A577
Deuteranopia (green-blind)
#B3A87C
Tritanopia (blue-blind)
#B7A29C
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa87a;
/* rgb */ color: rgb(175, 168, 122);
/* oklch */ color: oklch(72.6% 0.063 100.5);
Tailwind
colors: {
  custom: {
    50: '#c7c1a0',
    500: '#afa87a',
    950: '#000000',
  },
}
SCSS
$custom: #afa87a;
$custom-light: #c7c1a0;
$custom-dark: #000000;
JSON
{
  "hex": "#afa87a",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 122
  },
  "hsl": {
    "h": 52.075,
    "s": 24.883,
    "l": 58.235
  },
  "oklch": {
    "l": 0.72597,
    "c": 0.06303,
    "h": 100.5
  },
  "luminance": 0.38524
}

Semantic roles & 50–950 ramp

primary
#AFA87A
secondary
#B8BBCD
accent
#72C166
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120F
muted
#82817E

Preview Lab

Preview with #AFA87A

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

Preview Lab → · Contrast checker → · Palette generator →

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