#AFA786#AFA786

#AFA786 is a light, muted yellow. Relative luminance 0.385; OKLCH L 72.6% C 0.047 H 96.0°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#AFA786
RGBrgb(175, 167, 134)
HSLhsl(48, 20%, 61%)
HSVhsv(48, 23%, 69%)
CMYKcmyk(0%, 4.6%, 23.4%, 31.4%)
CIE-LABlab(68.37, -2.56, 18.14)
CIE-LCHlch(68.37, 18.32, 98.03°)
OKLaboklab(72.64% -0.0049 0.0463)
OKLCHoklch(72.64% 0.047 96)
XYZxyz(35.8010, 38.4733, 28.0898)
Luminance0.3847 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA786 #868EAF
analogous
#AF9286 #AFA786 #A2AF86
triadic
#AFA786 #86AFA7 #A786AF
tetradic
#AFA786 #86AF92 #868EAF #AF86A2
square
#AFA786 #86AF92 #868EAF #AF86A2
split-complementary
#AFA786 #86A2AF #9286AF
monochromatic
#70694A #958B63 #AFA786 #C7C2AB #E0DDD0

Accessibility & contrast

On white

2.42
#AFA786 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#AFA786 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA786
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA786#FFFFFF#000000##000000
##AFA7861.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#AEA584
Deuteranopia (green-blind)
#B0A887
Tritanopia (blue-blind)
#B6A29E
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa786;
/* rgb */ color: rgb(175, 167, 134);
/* oklch */ color: oklch(72.6% 0.047 96.0);
Tailwind
colors: {
  custom: {
    50: '#c7c1a9',
    500: '#afa786',
    950: '#000000',
  },
}
SCSS
$custom: #afa786;
$custom-light: #c7c1a9;
$custom-dark: #000000;
JSON
{
  "hex": "#afa786",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 134
  },
  "hsl": {
    "h": 48.293,
    "s": 20.398,
    "l": 60.588
  },
  "oklch": {
    "l": 0.72643,
    "c": 0.04651,
    "h": 96
  },
  "luminance": 0.38473
}

Semantic roles & 50–950 ramp

primary
#AFA786
secondary
#C1C4D0
accent
#589F47
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFA786

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

Preview Lab → · Contrast checker → · Palette generator →

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