#AFA8CC#AFA8CC

#AFA8CC is a light, muted violet. Relative luminance 0.415; OKLCH L 74.9% C 0.052 H 294.0°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA8CC
RGBrgb(175, 168, 204)
HSLhsl(252, 26%, 73%)
HSVhsv(252, 18%, 80%)
CMYKcmyk(14.2%, 17.6%, 0%, 20%)
CIE-LABlab(70.51, 9.69, -17.39)
CIE-LCHlch(70.51, 19.91, 299.12°)
OKLaboklab(74.94% 0.0211 -0.0472)
OKLCHoklch(74.94% 0.052 294)
XYZxyz(42.5786, 41.4786, 62.8780)
Luminance0.4148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8CC #C5CCA8
analogous
#A8B3CC #AFA8CC #C1A8CC
triadic
#AFA8CC #CCAFA8 #A8CCAF
tetradic
#AFA8CC #CCA8B3 #C5CCA8 #A8CCC1
square
#AFA8CC #CCA8B3 #C5CCA8 #A8CCC1
split-complementary
#AFA8CC #CCC1A8 #B3CCA8
monochromatic
#695C9D #8C81B5 #AFA8CC #D2CFE3 #EDECF4

Accessibility & contrast

On white

2.26
#AFA8CC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#AFA8CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8CC
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8CC#FFFFFF#000000##000000
##AFA8CC1.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#A0ADCE
Deuteranopia (green-blind)
#A1ACCB
Tritanopia (blue-blind)
#AAADB4
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa8cc;
/* rgb */ color: rgb(175, 168, 204);
/* oklch */ color: oklch(74.9% 0.052 294.0);
Tailwind
colors: {
  custom: {
    50: '#c7c1db',
    500: '#afa8cc',
    950: '#000000',
  },
}
SCSS
$custom: #afa8cc;
$custom-light: #c7c1db;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8cc",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 204
  },
  "hsl": {
    "h": 251.667,
    "s": 26.087,
    "l": 72.941
  },
  "oklch": {
    "l": 0.74942,
    "c": 0.05171,
    "h": 294
  },
  "luminance": 0.41479
}

Semantic roles & 50–950 ramp

primary
#AFA8CC
secondary
#E8EAE1
accent
#A54191
background
#FCFBFD
surface
#F8F7FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA8CC

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

Preview Lab → · Contrast checker → · Palette generator →

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