#AFA771#AFA771

#AFA771 is a light, moderate yellow. Relative luminance 0.379; OKLCH L 72.2% C 0.073 H 100.8°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#AFA771
RGBrgb(175, 167, 113)
HSLhsl(52, 28%, 56%)
HSVhsv(52, 35%, 69%)
CMYKcmyk(0%, 4.6%, 35.4%, 31.4%)
CIE-LABlab(67.98, -5.39, 29.01)
CIE-LCHlch(67.98, 29.50, 100.52°)
OKLaboklab(72.21% -0.0137 0.0718)
OKLCHoklch(72.21% 0.073 100.8)
XYZxyz(34.4790, 37.9445, 21.1273)
Luminance0.3794 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA771 #7179AF
analogous
#AF8871 #AFA771 #98AF71
triadic
#AFA771 #71AFA7 #A771AF
tetradic
#AFA771 #71AF88 #7179AF #AF7198
square
#AFA771 #71AF88 #7179AF #AF7198
split-complementary
#AFA771 #7198AF #8871AF
monochromatic
#6A643C #918952 #AFA771 #C5BF98 #DBD8BF

Accessibility & contrast

On white

2.45
#AFA771 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#AFA771 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA771
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA771#FFFFFF#000000##000000
##AFA7711.002.458.598.59
#FFFFFF2.451.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A46D
Deuteranopia (green-blind)
#B3A773
Tritanopia (blue-blind)
#B8A099
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa771;
/* rgb */ color: rgb(175, 167, 113);
/* oklch */ color: oklch(72.2% 0.073 100.8);
Tailwind
colors: {
  custom: {
    50: '#c8c19a',
    500: '#afa771',
    950: '#000000',
  },
}
SCSS
$custom: #afa771;
$custom-light: #c8c19a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa771",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 113
  },
  "hsl": {
    "h": 52.258,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.72209,
    "c": 0.0731,
    "h": 100.8
  },
  "luminance": 0.37944
}

Semantic roles & 50–950 ramp

primary
#AFA771
secondary
#B1B4CB
accent
#70C464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA771

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

Preview Lab → · Contrast checker → · Palette generator →

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