#AFAA97#AFAA97

#AFAA97 is a light, muted yellow. Relative luminance 0.401; OKLCH L 73.7% C 0.027 H 94.8°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#AFAA97
RGBrgb(175, 170, 151)
HSLhsl(48, 13%, 64%)
HSVhsv(48, 14%, 69%)
CMYKcmyk(0%, 2.9%, 13.7%, 31.4%)
CIE-LABlab(69.54, -1.53, 10.44)
CIE-LCHlch(69.54, 10.55, 98.34°)
OKLaboklab(73.69% -0.0023 0.0271)
OKLCHoklch(73.69% 0.027 94.8)
XYZxyz(37.6394, 40.0982, 35.0290)
Luminance0.4010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAA97 #979CAF
analogous
#AF9E97 #AFAA97 #A8AF97
triadic
#AFAA97 #97AFAA #AA97AF
tetradic
#AFAA97 #97AF9E #979CAF #AF97A8
square
#AFAA97 #97AF9E #979CAF #AF97A8
split-complementary
#AFAA97 #97A8AF #9E97AF
monochromatic
#736E59 #948E74 #AFAA97 #CAC6BA #E4E3DC

Accessibility & contrast

On white

2.33
#AFAA97 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#AFAA97 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAA97
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAA97#FFFFFF#000000##000000
##AFAA971.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#AEA996
Deuteranopia (green-blind)
#B0AB98
Tritanopia (blue-blind)
#B3A7A5
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afaa97;
/* rgb */ color: rgb(175, 170, 151);
/* oklch */ color: oklch(73.7% 0.027 94.8);
Tailwind
colors: {
  custom: {
    50: '#c7c3b5',
    500: '#afaa97',
    950: '#000000',
  },
}
SCSS
$custom: #afaa97;
$custom-light: #c7c3b5;
$custom-dark: #000000;
JSON
{
  "hex": "#afaa97",
  "rgb": {
    "r": 175,
    "g": 170,
    "b": 151
  },
  "hsl": {
    "h": 47.5,
    "s": 13.043,
    "l": 63.922
  },
  "oklch": {
    "l": 0.73688,
    "c": 0.02721,
    "h": 94.8
  },
  "luminance": 0.40098
}

Semantic roles & 50–950 ramp

primary
#AFAA97
secondary
#CDCED5
accent
#5E974E
background
#FCFBFB
surface
#F8F7F6
border
#D1D0D0
text
#131211
muted
#828180

Preview Lab

Preview with #AFAA97

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

Preview Lab → · Contrast checker → · Palette generator →

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