#AFA86F#AFA86F

#AFA86F is a light, moderate yellow. Relative luminance 0.383; OKLCH L 72.4% C 0.077 H 102.1°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#AFA86F
RGBrgb(175, 168, 111)
HSLhsl(53, 29%, 56%)
HSVhsv(53, 37%, 69%)
CMYKcmyk(0%, 4%, 36.6%, 31.4%)
CIE-LABlab(68.22, -6.16, 30.38)
CIE-LCHlch(68.22, 31.00, 101.46°)
OKLaboklab(72.39% -0.0161 0.0749)
OKLCHoklch(72.39% 0.077 102.1)
XYZxyz(34.5516, 38.2678, 20.6022)
Luminance0.3827 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA86F #6F76AF
analogous
#AF886F #AFA86F #96AF6F
triadic
#AFA86F #6FAFA8 #A86FAF
tetradic
#AFA86F #6FAF88 #6F76AF #AF6F96
square
#AFA86F #6FAF88 #6F76AF #AF6F96
split-complementary
#AFA86F #6F96AF #886FAF
monochromatic
#69643A #918950 #AFA86F #C5C096 #DBD8BE

Accessibility & contrast

On white

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

On black

8.65
#AFA86F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA86F
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA86F#FFFFFF#000000##000000
##AFA86F1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B2A46B
Deuteranopia (green-blind)
#B4A871
Tritanopia (blue-blind)
#B8A19A
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa86f;
/* rgb */ color: rgb(175, 168, 111);
/* oklch */ color: oklch(72.4% 0.077 102.1);
Tailwind
colors: {
  custom: {
    50: '#c8c199',
    500: '#afa86f',
    950: '#000000',
  },
}
SCSS
$custom: #afa86f;
$custom-light: #c8c199;
$custom-dark: #000000;
JSON
{
  "hex": "#afa86f",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 111
  },
  "hsl": {
    "h": 53.438,
    "s": 28.571,
    "l": 56.078
  },
  "oklch": {
    "l": 0.72386,
    "c": 0.07662,
    "h": 102.1
  },
  "luminance": 0.38267
}

Semantic roles & 50–950 ramp

primary
#AFA86F
secondary
#B0B3CA
accent
#6EC563
background
#FCFBF9
surface
#F8F7F2
border
#D1D0CC
text
#13120E
muted
#82817E

Preview Lab

Preview with #AFA86F

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

Preview Lab → · Contrast checker → · Palette generator →

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