#AFA6CC#AFA6CC

#AFA6CC is a light, muted violet. Relative luminance 0.407; OKLCH L 74.5% C 0.055 H 295.9°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#AFA6CC
RGBrgb(175, 166, 204)
HSLhsl(254, 27%, 73%)
HSVhsv(254, 19%, 80%)
CMYKcmyk(14.2%, 18.6%, 0%, 20%)
CIE-LABlab(70.00, 10.80, -18.17)
CIE-LCHlch(70.00, 21.14, 300.73°)
OKLaboklab(74.54% 0.024 -0.0494)
OKLCHoklch(74.54% 0.055 295.9)
XYZxyz(42.2122, 40.7458, 62.7559)
Luminance0.4075 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6CC #C3CCA6
analogous
#A6B0CC #AFA6CC #C2A6CC
triadic
#AFA6CC #CCAFA6 #A6CCAF
tetradic
#AFA6CC #CCA6B0 #C3CCA6 #A6CCC2
square
#AFA6CC #CCA6B0 #C3CCA6 #A6CCC2
split-complementary
#AFA6CC #CCC2A6 #B0CCA6
monochromatic
#6A5A9D #8C7FB6 #AFA6CC #D2CDE2 #EEECF4

Accessibility & contrast

On white

2.30
#AFA6CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.15
#AFA6CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6CC
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6CC#FFFFFF#000000##000000
##AFA6CC1.002.309.159.15
#FFFFFF2.301.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#9EABCE
Deuteranopia (green-blind)
#9FABCB
Tritanopia (blue-blind)
#AAACB3
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa6cc;
/* rgb */ color: rgb(175, 166, 204);
/* oklch */ color: oklch(74.5% 0.055 295.9);
Tailwind
colors: {
  custom: {
    50: '#c7c0db',
    500: '#afa6cc',
    950: '#000000',
  },
}
SCSS
$custom: #afa6cc;
$custom-light: #c7c0db;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6cc",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 204
  },
  "hsl": {
    "h": 254.211,
    "s": 27.143,
    "l": 72.549
  },
  "oklch": {
    "l": 0.74544,
    "c": 0.05489,
    "h": 295.9
  },
  "luminance": 0.40746
}

Semantic roles & 50–950 ramp

primary
#AFA6CC
secondary
#E8EAE1
accent
#A6408E
background
#FCFBFD
surface
#F8F7FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA6CC

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

Preview Lab → · Contrast checker → · Palette generator →

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