#AFA878#AFA878

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

Color values

HEX#AFA878
RGBrgb(175, 168, 120)
HSLhsl(52, 26%, 58%)
HSVhsv(52, 31%, 69%)
CMYKcmyk(0%, 4%, 31.4%, 31.4%)
CIE-LABlab(68.37, -5.04, 25.76)
CIE-LCHlch(68.37, 26.25, 101.06°)
OKLaboklab(72.56% -0.0123 0.0644)
OKLCHoklch(72.56% 0.066 100.8)
XYZxyz(35.0723, 38.4761, 23.3447)
Luminance0.3847 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA878 #787FAF
analogous
#AF8D78 #AFA878 #9AAF78
triadic
#AFA878 #78AFA8 #A878AF
tetradic
#AFA878 #78AF8D #787FAF #AF789A
square
#AFA878 #78AF8D #787FAF #AF789A
split-complementary
#AFA878 #789AAF #8D78AF
monochromatic
#6C6740 #938B57 #AFA878 #C6C19E #DDDAC5

Accessibility & contrast

On white

2.42
#AFA878 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#AFA878 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA878
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA878#FFFFFF#000000##000000
##AFA8781.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A575
Deuteranopia (green-blind)
#B3A87A
Tritanopia (blue-blind)
#B7A19B
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa878;
/* rgb */ color: rgb(175, 168, 120);
/* oklch */ color: oklch(72.6% 0.066 100.8);
Tailwind
colors: {
  custom: {
    50: '#c7c19f',
    500: '#afa878',
    950: '#000000',
  },
}
SCSS
$custom: #afa878;
$custom-light: #c7c19f;
$custom-dark: #000000;
JSON
{
  "hex": "#afa878",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 120
  },
  "hsl": {
    "h": 52.364,
    "s": 25.581,
    "l": 57.843
  },
  "oklch": {
    "l": 0.72557,
    "c": 0.06556,
    "h": 100.8
  },
  "luminance": 0.38475
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA878

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

Preview Lab → · Contrast checker → · Palette generator →

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