#AFA78F#AFA78F

#AFA78F is a light, muted yellow. Relative luminance 0.387; OKLCH L 72.9% C 0.035 H 91.7°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#AFA78F
RGBrgb(175, 167, 143)
HSLhsl(45, 17%, 62%)
HSVhsv(45, 18%, 69%)
CMYKcmyk(0%, 4.6%, 18.3%, 31.4%)
CIE-LABlab(68.56, -1.20, 13.46)
CIE-LCHlch(68.56, 13.52, 95.07°)
OKLaboklab(72.86% -0.0011 0.0347)
OKLCHoklch(72.86% 0.035 91.7)
XYZxyz(36.4556, 38.7352, 31.5375)
Luminance0.3874 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA78F #8F97AF
analogous
#AF978F #AFA78F #A7AF8F
triadic
#AFA78F #8FAFA7 #A78FAF
tetradic
#AFA78F #8FAF97 #8F97AF #AF8FA7
square
#AFA78F #8FAF97 #8F97AF #AF8FA7
split-complementary
#AFA78F #8FA7AF #978FAF
monochromatic
#726A51 #968B6B #AFA78F #C9C3B3 #E2DFD6

Accessibility & contrast

On white

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

On black

8.75
#AFA78F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA78F
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA78F#FFFFFF#000000##000000
##AFA78F1.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa78f;
/* rgb */ color: rgb(175, 167, 143);
/* oklch */ color: oklch(72.9% 0.035 91.7);
Tailwind
colors: {
  custom: {
    50: '#c7c1af',
    500: '#afa78f',
    950: '#000000',
  },
}
SCSS
$custom: #afa78f;
$custom-light: #c7c1af;
$custom-dark: #000000;
JSON
{
  "hex": "#afa78f",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 143
  },
  "hsl": {
    "h": 45,
    "s": 16.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.72856,
    "c": 0.03474,
    "h": 91.7
  },
  "luminance": 0.38735
}

Semantic roles & 50–950 ramp

primary
#AFA78F
secondary
#C7CAD3
accent
#5F9B4B
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#131210
muted
#82817F

Preview Lab

Preview with #AFA78F

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

Preview Lab → · Contrast checker → · Palette generator →

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