#AFA78D#AFA78D

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

Color values

HEX#AFA78D
RGBrgb(175, 167, 141)
HSLhsl(46, 18%, 62%)
HSVhsv(46, 19%, 69%)
CMYKcmyk(0%, 4.6%, 19.4%, 31.4%)
CIE-LABlab(68.52, -1.51, 14.50)
CIE-LCHlch(68.52, 14.58, 95.93°)
OKLaboklab(72.81% -0.0019 0.0373)
OKLCHoklch(72.81% 0.037 92.9)
XYZxyz(36.3055, 38.6751, 30.7466)
Luminance0.3867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA78D #8D95AF
analogous
#AF968D #AFA78D #A6AF8D
triadic
#AFA78D #8DAFA7 #A78DAF
tetradic
#AFA78D #8DAF96 #8D95AF #AF8DA6
square
#AFA78D #8DAF96 #8D95AF #AF8DA6
split-complementary
#AFA78D #8DA6AF #968DAF
monochromatic
#726A50 #968B69 #AFA78D #C8C3B1 #E1DFD5

Accessibility & contrast

On white

2.40
#AFA78D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA78D#FFFFFF#000000##000000
##AFA78D1.002.408.738.73
#FFFFFF2.401.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#ADA68B
Deuteranopia (green-blind)
#AFA88E
Tritanopia (blue-blind)
#B5A3A0
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa78d;
/* rgb */ color: rgb(175, 167, 141);
/* oklch */ color: oklch(72.8% 0.037 92.9);
Tailwind
colors: {
  custom: {
    50: '#c7c1ae',
    500: '#afa78d',
    950: '#000000',
  },
}
SCSS
$custom: #afa78d;
$custom-light: #c7c1ae;
$custom-dark: #000000;
JSON
{
  "hex": "#afa78d",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 141
  },
  "hsl": {
    "h": 45.882,
    "s": 17.526,
    "l": 61.961
  },
  "oklch": {
    "l": 0.72808,
    "c": 0.03736,
    "h": 92.9
  },
  "luminance": 0.38674
}

Semantic roles & 50–950 ramp

primary
#AFA78D
secondary
#C6C9D2
accent
#5D9C4A
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFA78D

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

Preview Lab → · Contrast checker → · Palette generator →

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