#AFA978#AFA978

#AFA978 is a light, moderate yellow. Relative luminance 0.388; OKLCH L 72.8% C 0.067 H 102.0°. Best body text is #000000 at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#AFA978
RGBrgb(175, 169, 120)
HSLhsl(53, 26%, 58%)
HSVhsv(53, 31%, 69%)
CMYKcmyk(0%, 3.4%, 31.4%, 31.4%)
CIE-LABlab(68.64, -5.57, 26.12)
CIE-LCHlch(68.64, 26.71, 102.03°)
OKLaboklab(72.77% -0.0138 0.0652)
OKLCHoklch(72.77% 0.067 102)
XYZxyz(35.2576, 38.8467, 23.4065)
Luminance0.3885 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA978 #787EAF
analogous
#AF8E78 #AFA978 #99AF78
triadic
#AFA978 #78AFA9 #A978AF
tetradic
#AFA978 #78AF8E #787EAF #AF7899
square
#AFA978 #78AF8E #787EAF #AF7899
split-complementary
#AFA978 #7899AF #8E78AF
monochromatic
#6C6840 #938C57 #AFA978 #C6C19E #DDDAC5

Accessibility & contrast

On white

2.39
#AFA978 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.77
#AFA978 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA978
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA978#FFFFFF#000000##000000
##AFA9781.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A675
Deuteranopia (green-blind)
#B4A97A
Tritanopia (blue-blind)
#B7A29C
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa978;
/* rgb */ color: rgb(175, 169, 120);
/* oklch */ color: oklch(72.8% 0.067 102.0);
Tailwind
colors: {
  custom: {
    50: '#c7c29f',
    500: '#afa978',
    950: '#000000',
  },
}
SCSS
$custom: #afa978;
$custom-light: #c7c29f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa978",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 120
  },
  "hsl": {
    "h": 53.455,
    "s": 25.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.72771,
    "c": 0.06669,
    "h": 102
  },
  "luminance": 0.38846
}

Semantic roles & 50–950 ramp

primary
#AFA978
secondary
#B6B9CC
accent
#70C266
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA978

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

Preview Lab → · Contrast checker → · Palette generator →

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