#AFAB8B#AFAB8B

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

Color values

HEX#AFAB8B
RGBrgb(175, 171, 139)
HSLhsl(53, 18%, 62%)
HSVhsv(53, 21%, 69%)
CMYKcmyk(0%, 2.3%, 20.6%, 31.4%)
CIE-LABlab(69.54, -3.96, 17.03)
CIE-LCHlch(69.54, 17.49, 103.10°)
OKLaboklab(73.61% -0.0089 0.0436)
OKLCHoklch(73.61% 0.044 101.5)
XYZxyz(36.9021, 40.1044, 30.2180)
Luminance0.4010 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFAB8B #8B8FAF
analogous
#AF998B #AFAB8B #A1AF8B
triadic
#AFAB8B #8BAFAB #AB8BAF
tetradic
#AFAB8B #8BAF99 #8B8FAF #AF8BA1
square
#AFAB8B #8BAF99 #8B8FAF #AF8BA1
split-complementary
#AFAB8B #8BA1AF #998BAF
monochromatic
#716D4E #969067 #AFAB8B #C8C5AF #E1DFD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFAB8B#FFFFFF#000000##000000
##AFAB8B1.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)
#B1A989
Deuteranopia (green-blind)
#B3AB8C
Tritanopia (blue-blind)
#B5A6A2
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afab8b;
/* rgb */ color: rgb(175, 171, 139);
/* oklch */ color: oklch(73.6% 0.044 101.5);
Tailwind
colors: {
  custom: {
    50: '#c7c4ad',
    500: '#afab8b',
    950: '#000000',
  },
}
SCSS
$custom: #afab8b;
$custom-light: #c7c4ad;
$custom-dark: #000000;
JSON
{
  "hex": "#afab8b",
  "rgb": {
    "r": 175,
    "g": 171,
    "b": 139
  },
  "hsl": {
    "h": 53.333,
    "s": 18.367,
    "l": 61.569
  },
  "oklch": {
    "l": 0.73605,
    "c": 0.04446,
    "h": 101.5
  },
  "luminance": 0.40104
}

Semantic roles & 50–950 ramp

primary
#AFAB8B
secondary
#C4C6D2
accent
#529D49
background
#FCFCFA
surface
#F8F8F4
border
#D1D1CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFAB8B

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

Preview Lab → · Contrast checker → · Palette generator →

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