#AFA78C#AFA78C

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

Color values

HEX#AFA78C
RGBrgb(175, 167, 140)
HSLhsl(46, 18%, 62%)
HSVhsv(46, 20%, 69%)
CMYKcmyk(0%, 4.6%, 20%, 31.4%)
CIE-LABlab(68.49, -1.66, 15.02)
CIE-LCHlch(68.49, 15.11, 96.31°)
OKLaboklab(72.78% -0.0023 0.0386)
OKLCHoklch(72.78% 0.039 93.4)
XYZxyz(36.2314, 38.6455, 30.3565)
Luminance0.3865 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA78C #8C94AF
analogous
#AF968C #AFA78C #A6AF8C
triadic
#AFA78C #8CAFA7 #A78CAF
tetradic
#AFA78C #8CAF96 #8C94AF #AF8CA6
square
#AFA78C #8CAF96 #8C94AF #AF8CA6
split-complementary
#AFA78C #8CA6AF #968CAF
monochromatic
#726A4F #968B68 #AFA78C #C8C3B0 #E1DED4

Accessibility & contrast

On white

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

On black

8.73
#AFA78C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA78C
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA78C#FFFFFF#000000##000000
##AFA78C1.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa78c;
/* rgb */ color: rgb(175, 167, 140);
/* oklch */ color: oklch(72.8% 0.039 93.4);
Tailwind
colors: {
  custom: {
    50: '#c7c1ad',
    500: '#afa78c',
    950: '#000000',
  },
}
SCSS
$custom: #afa78c;
$custom-light: #c7c1ad;
$custom-dark: #000000;
JSON
{
  "hex": "#afa78c",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 140
  },
  "hsl": {
    "h": 46.286,
    "s": 17.949,
    "l": 61.765
  },
  "oklch": {
    "l": 0.72783,
    "c": 0.03867,
    "h": 93.4
  },
  "luminance": 0.38645
}

Semantic roles & 50–950 ramp

primary
#AFA78C
secondary
#C5C8D2
accent
#5C9C49
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFA78C

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

Preview Lab → · Contrast checker → · Palette generator →

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