#AFA788#AFA788

#AFA788 is a light, muted yellow. Relative luminance 0.385; OKLCH L 72.7% C 0.044 H 95.2°. Best body text is #000000 at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#AFA788
RGBrgb(175, 167, 136)
HSLhsl(48, 20%, 61%)
HSVhsv(48, 22%, 69%)
CMYKcmyk(0%, 4.6%, 22.3%, 31.4%)
CIE-LABlab(68.41, -2.26, 17.10)
CIE-LCHlch(68.41, 17.25, 97.54°)
OKLaboklab(72.69% -0.004 0.0437)
OKLCHoklch(72.69% 0.044 95.2)
XYZxyz(35.9418, 38.5296, 28.8314)
Luminance0.3853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA788 #8890AF
analogous
#AF9388 #AFA788 #A3AF88
triadic
#AFA788 #88AFA7 #A788AF
tetradic
#AFA788 #88AF93 #8890AF #AF88A3
square
#AFA788 #88AF93 #8890AF #AF88A3
split-complementary
#AFA788 #88A3AF #9388AF
monochromatic
#71694C #958B64 #AFA788 #C8C2AD #E0DDD1

Accessibility & contrast

On white

2.41
#AFA788 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.71
#AFA788 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA788
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA788#FFFFFF#000000##000000
##AFA7881.002.418.718.71
#FFFFFF2.411.0021.0021.00
#0000008.7121.001.001.00
##0000008.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AEA586
Deuteranopia (green-blind)
#B0A889
Tritanopia (blue-blind)
#B5A29E
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa788;
/* rgb */ color: rgb(175, 167, 136);
/* oklch */ color: oklch(72.7% 0.044 95.2);
Tailwind
colors: {
  custom: {
    50: '#c7c1aa',
    500: '#afa788',
    950: '#000000',
  },
}
SCSS
$custom: #afa788;
$custom-light: #c7c1aa;
$custom-dark: #000000;
JSON
{
  "hex": "#afa788",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 136
  },
  "hsl": {
    "h": 47.692,
    "s": 19.598,
    "l": 60.98
  },
  "oklch": {
    "l": 0.72689,
    "c": 0.0439,
    "h": 95.2
  },
  "luminance": 0.38529
}

Semantic roles & 50–950 ramp

primary
#AFA788
secondary
#C2C5D1
accent
#599E48
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFA788

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

Preview Lab → · Contrast checker → · Palette generator →

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