#AFA78E#AFA78E

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

Color values

HEX#AFA78E
RGBrgb(175, 167, 142)
HSLhsl(45, 17%, 62%)
HSVhsv(45, 19%, 69%)
CMYKcmyk(0%, 4.6%, 18.9%, 31.4%)
CIE-LABlab(68.54, -1.35, 13.98)
CIE-LCHlch(68.54, 14.05, 95.52°)
OKLaboklab(72.83% -0.0015 0.036)
OKLCHoklch(72.83% 0.036 92.4)
XYZxyz(36.3802, 38.7050, 31.1403)
Luminance0.3870 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA78E #8E96AF
analogous
#AF978E #AFA78E #A6AF8E
triadic
#AFA78E #8EAFA7 #A78EAF
tetradic
#AFA78E #8EAF97 #8E96AF #AF8EA6
square
#AFA78E #8EAF97 #8E96AF #AF8EA6
split-complementary
#AFA78E #8EA6AF #978EAF
monochromatic
#726A51 #968B6A #AFA78E #C8C3B2 #E2DFD6

Accessibility & contrast

On white

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

On black

8.74
#AFA78E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA78E
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA78E#FFFFFF#000000##000000
##AFA78E1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa78e;
/* rgb */ color: rgb(175, 167, 142);
/* oklch */ color: oklch(72.8% 0.036 92.4);
Tailwind
colors: {
  custom: {
    50: '#c7c1af',
    500: '#afa78e',
    950: '#000000',
  },
}
SCSS
$custom: #afa78e;
$custom-light: #c7c1af;
$custom-dark: #000000;
JSON
{
  "hex": "#afa78e",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 142
  },
  "hsl": {
    "h": 45.455,
    "s": 17.098,
    "l": 62.157
  },
  "oklch": {
    "l": 0.72832,
    "c": 0.03605,
    "h": 92.4
  },
  "luminance": 0.38704
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA78E

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

Preview Lab → · Contrast checker → · Palette generator →

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