#AFA866#AFA866

#AFA866 is a light, moderate yellow. Relative luminance 0.381; OKLCH L 72.2% C 0.087 H 103.1°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#AFA866
RGBrgb(175, 168, 102)
HSLhsl(54, 31%, 54%)
HSVhsv(54, 42%, 69%)
CMYKcmyk(0%, 4%, 41.7%, 31.4%)
CIE-LABlab(68.08, -7.19, 34.95)
CIE-LCHlch(68.08, 35.68, 101.63°)
OKLaboklab(72.23% -0.0197 0.085)
OKLCHoklch(72.23% 0.087 103.1)
XYZxyz(34.0808, 38.0795, 18.1226)
Luminance0.3808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA866 #666DAF
analogous
#AF8466 #AFA866 #92AF66
triadic
#AFA866 #66AFA8 #A866AF
tetradic
#AFA866 #66AF84 #666DAF #AF6692
square
#AFA866 #66AF84 #666DAF #AF6692
split-complementary
#AFA866 #6692AF #8466AF
monochromatic
#666135 #8E874A #AFA866 #C4BF8E #D9D6B6

Accessibility & contrast

On white

2.44
#AFA866 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#AFA866 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA866
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA866#FFFFFF#000000##000000
##AFA8661.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B3A461
Deuteranopia (green-blind)
#B5A869
Tritanopia (blue-blind)
#B9A098
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #afa866;
/* rgb */ color: rgb(175, 168, 102);
/* oklch */ color: oklch(72.2% 0.087 103.1);
Tailwind
colors: {
  custom: {
    50: '#c8c192',
    500: '#afa866',
    950: '#000000',
  },
}
SCSS
$custom: #afa866;
$custom-light: #c8c192;
$custom-dark: #000000;
JSON
{
  "hex": "#afa866",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 102
  },
  "hsl": {
    "h": 54.247,
    "s": 31.33,
    "l": 54.314
  },
  "oklch": {
    "l": 0.72232,
    "c": 0.08723,
    "h": 103.1
  },
  "luminance": 0.38079
}

Semantic roles & 50–950 ramp

primary
#AFA866
secondary
#A9ACC8
accent
#6AC860
background
#FCFBF9
surface
#F8F7F1
border
#D1D0CB
text
#13120D
muted
#82817E

Preview Lab

Preview with #AFA866

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

Preview Lab → · Contrast checker → · Palette generator →

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