#AFA86D#AFA86D

#AFA86D is a light, moderate yellow. Relative luminance 0.382; OKLCH L 72.4% C 0.079 H 102.3°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#AFA86D
RGBrgb(175, 168, 109)
HSLhsl(54, 29%, 56%)
HSVhsv(54, 38%, 69%)
CMYKcmyk(0%, 4%, 37.7%, 31.4%)
CIE-LABlab(68.19, -6.40, 31.40)
CIE-LCHlch(68.19, 32.05, 101.52°)
OKLaboklab(72.35% -0.0169 0.0772)
OKLCHoklch(72.35% 0.079 102.3)
XYZxyz(34.4427, 38.2242, 20.0287)
Luminance0.3822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA86D #6D74AF
analogous
#AF876D #AFA86D #95AF6D
triadic
#AFA86D #6DAFA8 #A86DAF
tetradic
#AFA86D #6DAF87 #6D74AF #AF6D95
square
#AFA86D #6DAF87 #6D74AF #AF6D95
split-complementary
#AFA86D #6D95AF #876DAF
monochromatic
#686339 #90894F #AFA86D #C5C095 #DAD7BC

Accessibility & contrast

On white

2.43
#AFA86D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#AFA86D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA86D
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA86D#FFFFFF#000000##000000
##AFA86D1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa86d;
/* rgb */ color: rgb(175, 168, 109);
/* oklch */ color: oklch(72.4% 0.079 102.3);
Tailwind
colors: {
  custom: {
    50: '#c8c197',
    500: '#afa86d',
    950: '#000000',
  },
}
SCSS
$custom: #afa86d;
$custom-light: #c8c197;
$custom-dark: #000000;
JSON
{
  "hex": "#afa86d",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 109
  },
  "hsl": {
    "h": 53.636,
    "s": 29.204,
    "l": 55.686
  },
  "oklch": {
    "l": 0.72351,
    "c": 0.07903,
    "h": 102.3
  },
  "luminance": 0.38223
}

Semantic roles & 50–950 ramp

primary
#AFA86D
secondary
#AEB1CA
accent
#6DC562
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA86D

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

Preview Lab → · Contrast checker → · Palette generator →

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