#AFA971#AFA971

#AFA971 is a light, moderate yellow. Relative luminance 0.387; OKLCH L 72.6% C 0.075 H 102.9°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#AFA971
RGBrgb(175, 169, 113)
HSLhsl(54, 28%, 56%)
HSVhsv(54, 35%, 69%)
CMYKcmyk(0%, 3.4%, 35.4%, 31.4%)
CIE-LABlab(68.52, -6.45, 29.71)
CIE-LCHlch(68.52, 30.41, 102.25°)
OKLaboklab(72.64% -0.0168 0.0735)
OKLCHoklch(72.64% 0.075 102.9)
XYZxyz(34.8482, 38.6830, 21.2504)
Luminance0.3868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA971 #7177AF
analogous
#AF8A71 #AFA971 #96AF71
triadic
#AFA971 #71AFA9 #A971AF
tetradic
#AFA971 #71AF8A #7177AF #AF7196
square
#AFA971 #71AF8A #7177AF #AF7196
split-complementary
#AFA971 #7196AF #8A71AF
monochromatic
#6A653C #918B52 #AFA971 #C5C198 #DBD8BF

Accessibility & contrast

On white

2.40
#AFA971 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#AFA971 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA971
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA971#FFFFFF#000000##000000
##AFA9711.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A56D
Deuteranopia (green-blind)
#B5A973
Tritanopia (blue-blind)
#B8A29B
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #afa971;
/* rgb */ color: rgb(175, 169, 113);
/* oklch */ color: oklch(72.6% 0.075 102.9);
Tailwind
colors: {
  custom: {
    50: '#c8c29a',
    500: '#afa971',
    950: '#000000',
  },
}
SCSS
$custom: #afa971;
$custom-light: #c8c29a;
$custom-dark: #000000;
JSON
{
  "hex": "#afa971",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 113
  },
  "hsl": {
    "h": 54.194,
    "s": 27.928,
    "l": 56.471
  },
  "oklch": {
    "l": 0.72637,
    "c": 0.07534,
    "h": 102.9
  },
  "luminance": 0.38682
}

Semantic roles & 50–950 ramp

primary
#AFA971
secondary
#B1B4CB
accent
#6DC464
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA971

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

Preview Lab → · Contrast checker → · Palette generator →

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