#AFA97F#AFA97F

#AFA97F is a light, muted yellow. Relative luminance 0.390; OKLCH L 72.9% C 0.058 H 100.9°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#AFA97F
RGBrgb(175, 169, 127)
HSLhsl(53, 23%, 59%)
HSVhsv(53, 27%, 69%)
CMYKcmyk(0%, 3.4%, 27.4%, 31.4%)
CIE-LABlab(68.77, -4.63, 22.51)
CIE-LCHlch(68.77, 22.98, 101.62°)
OKLaboklab(72.91% -0.0109 0.0568)
OKLCHoklch(72.91% 0.058 100.9)
XYZxyz(35.6981, 39.0229, 25.7262)
Luminance0.3902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA97F #7F85AF
analogous
#AF917F #AFA97F #9DAF7F
triadic
#AFA97F #7FAFA9 #A97FAF
tetradic
#AFA97F #7FAF91 #7F85AF #AF7F9D
square
#AFA97F #7FAF91 #7F85AF #AF7F9D
split-complementary
#AFA97F #7F9DAF #917FAF
monochromatic
#6F6945 #948D5D #AFA97F #C7C2A5 #DEDCCA

Accessibility & contrast

On white

2.39
#AFA97F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#AFA97F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA97F
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA97F#FFFFFF#000000##000000
##AFA97F1.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A67C
Deuteranopia (green-blind)
#B3A980
Tritanopia (blue-blind)
#B6A39E
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa97f;
/* rgb */ color: rgb(175, 169, 127);
/* oklch */ color: oklch(72.9% 0.058 100.9);
Tailwind
colors: {
  custom: {
    50: '#c7c2a4',
    500: '#afa97f',
    950: '#000000',
  },
}
SCSS
$custom: #afa97f;
$custom-light: #c7c2a4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa97f",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 127
  },
  "hsl": {
    "h": 52.5,
    "s": 23.077,
    "l": 59.216
  },
  "oklch": {
    "l": 0.72914,
    "c": 0.05781,
    "h": 100.9
  },
  "luminance": 0.39022
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA97F

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

Preview Lab → · Contrast checker → · Palette generator →

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