#AFA87E#AFA87E

#AFA87E is a light, muted yellow. Relative luminance 0.386; OKLCH L 72.7% C 0.058 H 99.7°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#AFA87E
RGBrgb(175, 168, 126)
HSLhsl(51, 23%, 59%)
HSVhsv(51, 28%, 69%)
CMYKcmyk(0%, 4%, 28%, 31.4%)
CIE-LABlab(68.48, -4.23, 22.66)
CIE-LCHlch(68.48, 23.05, 100.58°)
OKLaboklab(72.68% -0.0098 0.0571)
OKLCHoklch(72.68% 0.058 99.7)
XYZxyz(35.4479, 38.6263, 25.3229)
Luminance0.3863 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA87E #7E85AF
analogous
#AF907E #AFA87E #9EAF7E
triadic
#AFA87E #7EAFA8 #A87EAF
tetradic
#AFA87E #7EAF90 #7E85AF #AF7E9E
square
#AFA87E #7EAF90 #7E85AF #AF7E9E
split-complementary
#AFA87E #7E9EAF #907EAF
monochromatic
#6E6844 #948C5C #AFA87E #C6C1A4 #DEDBCA

Accessibility & contrast

On white

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

On black

8.73
#AFA87E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA87E
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA87E#FFFFFF#000000##000000
##AFA87E1.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B0A57B
Deuteranopia (green-blind)
#B2A87F
Tritanopia (blue-blind)
#B7A29D
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa87e;
/* rgb */ color: rgb(175, 168, 126);
/* oklch */ color: oklch(72.7% 0.058 99.7);
Tailwind
colors: {
  custom: {
    50: '#c7c1a3',
    500: '#afa87e',
    950: '#000000',
  },
}
SCSS
$custom: #afa87e;
$custom-light: #c7c1a3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa87e",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 126
  },
  "hsl": {
    "h": 51.429,
    "s": 23.445,
    "l": 59.02
  },
  "oklch": {
    "l": 0.7268,
    "c": 0.05795,
    "h": 99.7
  },
  "luminance": 0.38626
}

Semantic roles & 50–950 ramp

primary
#AFA87E
secondary
#BBBECE
accent
#74C068
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA87E

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

Preview Lab → · Contrast checker → · Palette generator →

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