#AFA78B#AFA78B

#AFA78B is a light, muted yellow. Relative luminance 0.386; OKLCH L 72.8% C 0.040 H 93.9°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#AFA78B
RGBrgb(175, 167, 139)
HSLhsl(47, 18%, 62%)
HSVhsv(47, 21%, 69%)
CMYKcmyk(0%, 4.6%, 20.6%, 31.4%)
CIE-LABlab(68.47, -1.81, 15.54)
CIE-LCHlch(68.47, 15.65, 96.65°)
OKLaboklab(72.76% -0.0027 0.0399)
OKLCHoklch(72.76% 0.04 93.9)
XYZxyz(36.1580, 38.6161, 29.9700)
Luminance0.3861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA78B #8B93AF
analogous
#AF958B #AFA78B #A5AF8B
triadic
#AFA78B #8BAFA7 #A78BAF
tetradic
#AFA78B #8BAF95 #8B93AF #AF8BA5
square
#AFA78B #8BAF95 #8B93AF #AF8BA5
split-complementary
#AFA78B #8BA5AF #958BAF
monochromatic
#716A4E #968B67 #AFA78B #C8C2AF #E1DED3

Accessibility & contrast

On white

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

On black

8.72
#AFA78B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA78B
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA78B#FFFFFF#000000##000000
##AFA78B1.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#ADA589
Deuteranopia (green-blind)
#AFA88C
Tritanopia (blue-blind)
#B5A39F
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa78b;
/* rgb */ color: rgb(175, 167, 139);
/* oklch */ color: oklch(72.8% 0.040 93.9);
Tailwind
colors: {
  custom: {
    50: '#c7c1ad',
    500: '#afa78b',
    950: '#000000',
  },
}
SCSS
$custom: #afa78b;
$custom-light: #c7c1ad;
$custom-dark: #000000;
JSON
{
  "hex": "#afa78b",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 139
  },
  "hsl": {
    "h": 46.667,
    "s": 18.367,
    "l": 61.569
  },
  "oklch": {
    "l": 0.7276,
    "c": 0.03997,
    "h": 93.9
  },
  "luminance": 0.38615
}

Semantic roles & 50–950 ramp

primary
#AFA78B
secondary
#C4C7D2
accent
#5B9D49
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFA78B

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

Preview Lab → · Contrast checker → · Palette generator →

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