#AFA86C#AFA86C

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

Color values

HEX#AFA86C
RGBrgb(175, 168, 108)
HSLhsl(54, 30%, 55%)
HSVhsv(54, 38%, 69%)
CMYKcmyk(0%, 4%, 38.3%, 31.4%)
CIE-LABlab(68.17, -6.52, 31.91)
CIE-LCHlch(68.17, 32.57, 101.54°)
OKLaboklab(72.33% -0.0173 0.0783)
OKLCHoklch(72.33% 0.08 102.5)
XYZxyz(34.3891, 38.2028, 19.7468)
Luminance0.3820 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA86C #6C73AF
analogous
#AF866C #AFA86C #94AF6C
triadic
#AFA86C #6CAFA8 #A86CAF
tetradic
#AFA86C #6CAF86 #6C73AF #AF6C94
square
#AFA86C #6CAF86 #6C73AF #AF6C94
split-complementary
#AFA86C #6C94AF #866CAF
monochromatic
#686339 #90894E #AFA86C #C5BF94 #DAD7BB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA86C#FFFFFF#000000##000000
##AFA86C1.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)
#B2A468
Deuteranopia (green-blind)
#B5A86E
Tritanopia (blue-blind)
#B8A099
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa86c;
/* rgb */ color: rgb(175, 168, 108);
/* oklch */ color: oklch(72.3% 0.080 102.5);
Tailwind
colors: {
  custom: {
    50: '#c8c197',
    500: '#afa86c',
    950: '#000000',
  },
}
SCSS
$custom: #afa86c;
$custom-light: #c8c197;
$custom-dark: #000000;
JSON
{
  "hex": "#afa86c",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 108
  },
  "hsl": {
    "h": 53.731,
    "s": 29.515,
    "l": 55.49
  },
  "oklch": {
    "l": 0.72333,
    "c": 0.08022,
    "h": 102.5
  },
  "luminance": 0.38202
}

Semantic roles & 50–950 ramp

primary
#AFA86C
secondary
#ADB0C9
accent
#6CC662
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA86C

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

Preview Lab → · Contrast checker → · Palette generator →

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