#AFA981#AFA981

#AFA981 is a light, muted yellow. Relative luminance 0.391; OKLCH L 73.0% C 0.055 H 100.5°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#AFA981
RGBrgb(175, 169, 129)
HSLhsl(52, 22%, 60%)
HSVhsv(52, 26%, 69%)
CMYKcmyk(0%, 3.4%, 26.3%, 31.4%)
CIE-LABlab(68.81, -4.35, 21.47)
CIE-LCHlch(68.81, 21.91, 101.45°)
OKLaboklab(72.96% -0.01 0.0543)
OKLCHoklch(72.96% 0.055 100.5)
XYZxyz(35.8297, 39.0756, 26.4195)
Luminance0.3907 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA981 #8187AF
analogous
#AF9281 #AFA981 #9EAF81
triadic
#AFA981 #81AFA9 #A981AF
tetradic
#AFA981 #81AF92 #8187AF #AF819E
square
#AFA981 #81AF92 #8187AF #AF819E
split-complementary
#AFA981 #819EAF #9281AF
monochromatic
#6F6A47 #958D5E #AFA981 #C7C3A6 #DFDCCC

Accessibility & contrast

On white

2.38
#AFA981 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#AFA981 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA981
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA981#FFFFFF#000000##000000
##AFA9811.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B1A67E
Deuteranopia (green-blind)
#B3A982
Tritanopia (blue-blind)
#B6A39E
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #afa981;
/* rgb */ color: rgb(175, 169, 129);
/* oklch */ color: oklch(73.0% 0.055 100.5);
Tailwind
colors: {
  custom: {
    50: '#c7c2a5',
    500: '#afa981',
    950: '#000000',
  },
}
SCSS
$custom: #afa981;
$custom-light: #c7c2a5;
$custom-dark: #000000;
JSON
{
  "hex": "#afa981",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 129
  },
  "hsl": {
    "h": 52.174,
    "s": 22.33,
    "l": 59.608
  },
  "oklch": {
    "l": 0.72956,
    "c": 0.05523,
    "h": 100.5
  },
  "luminance": 0.39075
}

Semantic roles & 50–950 ramp

primary
#AFA981
secondary
#BDBFCF
accent
#74BF69
background
#FCFBFA
surface
#F8F7F4
border
#D1D0CE
text
#13120F
muted
#82817F

Preview Lab

Preview with #AFA981

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

Preview Lab → · Contrast checker → · Palette generator →

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