#AFA86B#AFA86B

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

Color values

HEX#AFA86B
RGBrgb(175, 168, 107)
HSLhsl(54, 30%, 55%)
HSVhsv(54, 39%, 69%)
CMYKcmyk(0%, 4%, 38.9%, 31.4%)
CIE-LABlab(68.15, -6.63, 32.42)
CIE-LCHlch(68.15, 33.09, 101.56°)
OKLaboklab(72.32% -0.0177 0.0795)
OKLCHoklch(72.32% 0.081 102.6)
XYZxyz(34.3362, 38.1816, 19.4681)
Luminance0.3818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA86B #6B72AF
analogous
#AF866B #AFA86B #94AF6B
triadic
#AFA86B #6BAFA8 #A86BAF
tetradic
#AFA86B #6BAF86 #6B72AF #AF6B94
square
#AFA86B #6BAF86 #6B72AF #AF6B94
split-complementary
#AFA86B #6B94AF #866BAF
monochromatic
#686338 #8F894D #AFA86B #C4BF93 #DAD7BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA86B#FFFFFF#000000##000000
##AFA86B1.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)
#B2A466
Deuteranopia (green-blind)
#B5A86D
Tritanopia (blue-blind)
#B8A099
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa86b;
/* rgb */ color: rgb(175, 168, 107);
/* oklch */ color: oklch(72.3% 0.081 102.6);
Tailwind
colors: {
  custom: {
    50: '#c8c196',
    500: '#afa86b',
    950: '#000000',
  },
}
SCSS
$custom: #afa86b;
$custom-light: #c8c196;
$custom-dark: #000000;
JSON
{
  "hex": "#afa86b",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 107
  },
  "hsl": {
    "h": 53.824,
    "s": 29.825,
    "l": 55.294
  },
  "oklch": {
    "l": 0.72316,
    "c": 0.0814,
    "h": 102.6
  },
  "luminance": 0.38181
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA86B

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

Preview Lab → · Contrast checker → · Palette generator →

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