#AFAF8A#AFAF8A

#AFAF8A is a light, muted yellow. Relative luminance 0.416; OKLCH L 74.4% C 0.051 H 107.6°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#AFAF8A
RGBrgb(175, 175, 138)
HSLhsl(60, 19%, 61%)
HSVhsv(60, 21%, 69%)
CMYKcmyk(0%, 0%, 21.1%, 31.4%)
CIE-LABlab(70.60, -6.25, 19.04)
CIE-LCHlch(70.60, 20.04, 108.16°)
OKLaboklab(74.43% -0.0154 0.0485)
OKLCHoklch(74.43% 0.051 107.6)
XYZxyz(37.5964, 41.6093, 30.0907)
Luminance0.4161 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAF8A #8A8AAF
analogous
#AF9D8A #AFAF8A #9DAF8A
triadic
#AFAF8A #8AAFAF #AF8AAF
tetradic
#AFAF8A #8AAF9D #8A8AAF #AF8A9D
square
#AFAF8A #8AAF9D #8A8AAF #AF8A9D
split-complementary
#AFAF8A #8A9DAF #9D8AAF
monochromatic
#71714D #969666 #AFAF8A #C8C8AE #E1E1D3

Accessibility & contrast

On white

2.25
#AFAF8A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#AFAF8A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFAF8A
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFAF8A#FFFFFF#000000##000000
##AFAF8A1.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5AC88
Deuteranopia (green-blind)
#B6AD8B
Tritanopia (blue-blind)
#B5AAA5
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afaf8a;
/* rgb */ color: rgb(175, 175, 138);
/* oklch */ color: oklch(74.4% 0.051 107.6);
Tailwind
colors: {
  custom: {
    50: '#c7c6ac',
    500: '#afaf8a',
    950: '#000000',
  },
}
SCSS
$custom: #afaf8a;
$custom-light: #c7c6ac;
$custom-dark: #000000;
JSON
{
  "hex": "#afaf8a",
  "rgb": {
    "r": 175,
    "g": 175,
    "b": 138
  },
  "hsl": {
    "h": 60,
    "s": 18.782,
    "l": 61.373
  },
  "oklch": {
    "l": 0.74434,
    "c": 0.05086,
    "h": 107.6
  },
  "luminance": 0.41609
}

Semantic roles & 50–950 ramp

primary
#AFAF8A
secondary
#C3C3D1
accent
#489D48
background
#FCFCFA
surface
#F8F8F4
border
#D1D1CE
text
#131310
muted
#82827F

Preview Lab

Preview with #AFAF8A

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

Preview Lab → · Contrast checker → · Palette generator →

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