#AFA97C#AFA97C

#AFA97C is a light, moderate yellow. Relative luminance 0.389; OKLCH L 72.9% C 0.062 H 101.4°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#AFA97C
RGBrgb(175, 169, 124)
HSLhsl(53, 24%, 59%)
HSVhsv(53, 29%, 69%)
CMYKcmyk(0%, 3.4%, 29.1%, 31.4%)
CIE-LABlab(68.71, -5.04, 24.06)
CIE-LCHlch(68.71, 24.58, 101.83°)
OKLaboklab(72.85% -0.0122 0.0604)
OKLCHoklch(72.85% 0.062 101.4)
XYZxyz(35.5055, 38.9459, 24.7118)
Luminance0.3895 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA97C #7C82AF
analogous
#AF8F7C #AFA97C #9BAF7C
triadic
#AFA97C #7CAFA9 #A97CAF
tetradic
#AFA97C #7CAF8F #7C82AF #AF7C9B
square
#AFA97C #7CAF8F #7C82AF #AF7C9B
split-complementary
#AFA97C #7C9BAF #8F7CAF
monochromatic
#6E6943 #948D5A #AFA97C #C6C2A2 #DDDBC8

Accessibility & contrast

On white

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

On black

8.79
#AFA97C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA97C
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA97C#FFFFFF#000000##000000
##AFA97C1.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A679
Deuteranopia (green-blind)
#B3A97E
Tritanopia (blue-blind)
#B7A39D
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa97c;
/* rgb */ color: rgb(175, 169, 124);
/* oklch */ color: oklch(72.9% 0.062 101.4);
Tailwind
colors: {
  custom: {
    50: '#c7c2a2',
    500: '#afa97c',
    950: '#000000',
  },
}
SCSS
$custom: #afa97c;
$custom-light: #c7c2a2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa97c",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 124
  },
  "hsl": {
    "h": 52.941,
    "s": 24.171,
    "l": 58.627
  },
  "oklch": {
    "l": 0.72851,
    "c": 0.06164,
    "h": 101.4
  },
  "luminance": 0.38945
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA97C

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

Preview Lab → · Contrast checker → · Palette generator →

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