#AFA879#AFA879

#AFA879 is a light, moderate yellow. Relative luminance 0.385; OKLCH L 72.6% C 0.064 H 100.7°. Best body text is #000000 at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#AFA879
RGBrgb(175, 168, 121)
HSLhsl(52, 25%, 58%)
HSVhsv(52, 31%, 69%)
CMYKcmyk(0%, 4%, 30.9%, 31.4%)
CIE-LABlab(68.39, -4.90, 25.25)
CIE-LCHlch(68.39, 25.72, 100.99°)
OKLaboklab(72.58% -0.0119 0.0632)
OKLCHoklch(72.58% 0.064 100.7)
XYZxyz(35.1333, 38.5005, 23.6660)
Luminance0.3850 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA879 #7980AF
analogous
#AF8D79 #AFA879 #9BAF79
triadic
#AFA879 #79AFA8 #A879AF
tetradic
#AFA879 #79AF8D #7980AF #AF799B
square
#AFA879 #79AF8D #7980AF #AF799B
split-complementary
#AFA879 #799BAF #8D79AF
monochromatic
#6D6741 #938B58 #AFA879 #C6C19F #DDDAC6

Accessibility & contrast

On white

2.41
#AFA879 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.70
#AFA879 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA879
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA879#FFFFFF#000000##000000
##AFA8791.002.418.708.70
#FFFFFF2.411.0021.0021.00
#0000008.7021.001.001.00
##0000008.7021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa879;
/* rgb */ color: rgb(175, 168, 121);
/* oklch */ color: oklch(72.6% 0.064 100.7);
Tailwind
colors: {
  custom: {
    50: '#c7c1a0',
    500: '#afa879',
    950: '#000000',
  },
}
SCSS
$custom: #afa879;
$custom-light: #c7c1a0;
$custom-dark: #000000;
JSON
{
  "hex": "#afa879",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 121
  },
  "hsl": {
    "h": 52.222,
    "s": 25.234,
    "l": 58.039
  },
  "oklch": {
    "l": 0.72577,
    "c": 0.0643,
    "h": 100.7
  },
  "luminance": 0.385
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA879

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

Preview Lab → · Contrast checker → · Palette generator →

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