#AFA979#AFA979

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

Color values

HEX#AFA979
RGBrgb(175, 169, 121)
HSLhsl(53, 25%, 58%)
HSVhsv(53, 31%, 69%)
CMYKcmyk(0%, 3.4%, 30.9%, 31.4%)
CIE-LABlab(68.66, -5.44, 25.61)
CIE-LCHlch(68.66, 26.18, 101.99°)
OKLaboklab(72.79% -0.0134 0.064)
OKLCHoklch(72.79% 0.065 101.8)
XYZxyz(35.3186, 38.8711, 23.7278)
Luminance0.3887 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA979 #797FAF
analogous
#AF8E79 #AFA979 #9AAF79
triadic
#AFA979 #79AFA9 #A979AF
tetradic
#AFA979 #79AF8E #797FAF #AF799A
square
#AFA979 #79AF8E #797FAF #AF799A
split-complementary
#AFA979 #799AAF #8E79AF
monochromatic
#6D6841 #938C58 #AFA979 #C6C29F #DDDAC6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA979#FFFFFF#000000##000000
##AFA9791.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)
#B2A676
Deuteranopia (green-blind)
#B4A97B
Tritanopia (blue-blind)
#B7A39C
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa979;
/* rgb */ color: rgb(175, 169, 121);
/* oklch */ color: oklch(72.8% 0.065 101.8);
Tailwind
colors: {
  custom: {
    50: '#c7c2a0',
    500: '#afa979',
    950: '#000000',
  },
}
SCSS
$custom: #afa979;
$custom-light: #c7c2a0;
$custom-dark: #000000;
JSON
{
  "hex": "#afa979",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 121
  },
  "hsl": {
    "h": 53.333,
    "s": 25.234,
    "l": 58.039
  },
  "oklch": {
    "l": 0.72791,
    "c": 0.06543,
    "h": 101.8
  },
  "luminance": 0.3887
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA979

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

Preview Lab → · Contrast checker → · Palette generator →

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