#AFA877#AFA877

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

Color values

HEX#AFA877
RGBrgb(175, 168, 119)
HSLhsl(53, 26%, 58%)
HSVhsv(53, 32%, 69%)
CMYKcmyk(0%, 4%, 32%, 31.4%)
CIE-LABlab(68.35, -5.16, 26.28)
CIE-LCHlch(68.35, 26.78, 101.12°)
OKLaboklab(72.54% -0.0127 0.0656)
OKLCHoklch(72.54% 0.067 101)
XYZxyz(35.0119, 38.4519, 23.0268)
Luminance0.3845 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA877 #777EAF
analogous
#AF8C77 #AFA877 #9AAF77
triadic
#AFA877 #77AFA8 #A877AF
tetradic
#AFA877 #77AF8C #777EAF #AF779A
square
#AFA877 #77AF8C #777EAF #AF779A
split-complementary
#AFA877 #779AAF #8C77AF
monochromatic
#6C6640 #938B56 #AFA877 #C6C19E #DCD9C4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA877#FFFFFF#000000##000000
##AFA8771.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)
#B1A574
Deuteranopia (green-blind)
#B3A879
Tritanopia (blue-blind)
#B7A19B
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa877;
/* rgb */ color: rgb(175, 168, 119);
/* oklch */ color: oklch(72.5% 0.067 101.0);
Tailwind
colors: {
  custom: {
    50: '#c7c19e',
    500: '#afa877',
    950: '#000000',
  },
}
SCSS
$custom: #afa877;
$custom-light: #c7c19e;
$custom-dark: #000000;
JSON
{
  "hex": "#afa877",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 119
  },
  "hsl": {
    "h": 52.5,
    "s": 25.926,
    "l": 57.647
  },
  "oklch": {
    "l": 0.72537,
    "c": 0.06681,
    "h": 101
  },
  "luminance": 0.38451
}

Semantic roles & 50–950 ramp

primary
#AFA877
secondary
#B6B8CC
accent
#71C265
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA877

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

Preview Lab → · Contrast checker → · Palette generator →

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