#AFA87F#AFA87F

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

Color values

HEX#AFA87F
RGBrgb(175, 168, 127)
HSLhsl(51, 23%, 59%)
HSVhsv(51, 27%, 69%)
CMYKcmyk(0%, 4%, 27.4%, 31.4%)
CIE-LABlab(68.50, -4.09, 22.14)
CIE-LCHlch(68.50, 22.52, 100.48°)
OKLaboklab(72.7% -0.0094 0.0559)
OKLCHoklch(72.7% 0.057 99.5)
XYZxyz(35.5127, 38.6523, 25.6644)
Luminance0.3865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA87F #7F86AF
analogous
#AF907F #AFA87F #9EAF7F
triadic
#AFA87F #7FAFA8 #A87FAF
tetradic
#AFA87F #7FAF90 #7F86AF #AF7F9E
square
#AFA87F #7FAF90 #7F86AF #AF7F9E
split-complementary
#AFA87F #7F9EAF #907FAF
monochromatic
#6F6845 #948C5D #AFA87F #C7C2A5 #DEDBCA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA87F#FFFFFF#000000##000000
##AFA87F1.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)
#B0A57C
Deuteranopia (green-blind)
#B2A880
Tritanopia (blue-blind)
#B6A29D
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa87f;
/* rgb */ color: rgb(175, 168, 127);
/* oklch */ color: oklch(72.7% 0.057 99.5);
Tailwind
colors: {
  custom: {
    50: '#c7c1a4',
    500: '#afa87f',
    950: '#000000',
  },
}
SCSS
$custom: #afa87f;
$custom-light: #c7c1a4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa87f",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 127
  },
  "hsl": {
    "h": 51.25,
    "s": 23.077,
    "l": 59.216
  },
  "oklch": {
    "l": 0.72701,
    "c": 0.05667,
    "h": 99.5
  },
  "luminance": 0.38652
}

Semantic roles & 50–950 ramp

primary
#AFA87F
secondary
#BCBECE
accent
#75C068
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA87F

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

Preview Lab → · Contrast checker → · Palette generator →

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