#AFA87C#AFA87C

#AFA87C is a light, moderate yellow. Relative luminance 0.386; OKLCH L 72.6% C 0.060 H 100.1°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AFA87C
RGBrgb(175, 168, 124)
HSLhsl(52, 24%, 59%)
HSVhsv(52, 29%, 69%)
CMYKcmyk(0%, 4%, 29.1%, 31.4%)
CIE-LABlab(68.44, -4.50, 23.70)
CIE-LCHlch(68.44, 24.12, 100.76°)
OKLaboklab(72.64% -0.0106 0.0596)
OKLCHoklch(72.64% 0.061 100.1)
XYZxyz(35.3201, 38.5752, 24.6500)
Luminance0.3857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA87C #7C83AF
analogous
#AF8E7C #AFA87C #9CAF7C
triadic
#AFA87C #7CAFA8 #A87CAF
tetradic
#AFA87C #7CAF8E #7C83AF #AF7C9C
square
#AFA87C #7CAF8E #7C83AF #AF7C9C
split-complementary
#AFA87C #7C9CAF #8E7CAF
monochromatic
#6E6843 #948C5A #AFA87C #C6C1A2 #DDDAC8

Accessibility & contrast

On white

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

On black

8.71
#AFA87C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA87C
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA87C#FFFFFF#000000##000000
##AFA87C1.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa87c;
/* rgb */ color: rgb(175, 168, 124);
/* oklch */ color: oklch(72.6% 0.060 100.1);
Tailwind
colors: {
  custom: {
    50: '#c7c1a2',
    500: '#afa87c',
    950: '#000000',
  },
}
SCSS
$custom: #afa87c;
$custom-light: #c7c1a2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa87c",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 124
  },
  "hsl": {
    "h": 51.765,
    "s": 24.171,
    "l": 58.627
  },
  "oklch": {
    "l": 0.72638,
    "c": 0.0605,
    "h": 100.1
  },
  "luminance": 0.38574
}

Semantic roles & 50–950 ramp

primary
#AFA87C
secondary
#B9BCCD
accent
#73C167
background
#FCFBFA
surface
#F8F7F3
border
#D1D0CD
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA87C

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

Preview Lab → · Contrast checker → · Palette generator →

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