#AFA1DC#AFA1DC

#AFA1DC is a light, moderate violet. Relative luminance 0.398; OKLCH L 74.2% C 0.085 H 295.1°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#AFA1DC
RGBrgb(175, 161, 220)
HSLhsl(254, 46%, 75%)
HSVhsv(254, 27%, 86%)
CMYKcmyk(20.5%, 26.8%, 0%, 13.7%)
CIE-LABlab(69.31, 17.15, -28.04)
CIE-LCHlch(69.31, 32.87, 301.45°)
OKLaboklab(74.2% 0.0362 -0.0771)
OKLCHoklch(74.2% 0.085 295.1)
XYZxyz(43.3394, 39.7706, 73.0895)
Luminance0.3977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1DC #CEDCA1
analogous
#A1B1DC #AFA1DC #CCA1DC
triadic
#AFA1DC #DCAFA1 #A1DCAF
tetradic
#AFA1DC #DCA1B1 #CEDCA1 #A1DCCC
square
#AFA1DC #DCA1B1 #CEDCA1 #A1DCCC
split-complementary
#AFA1DC #DCCCA1 #B1DCA1
monochromatic
#6348BB #8974CB #AFA1DC #D5CEED #ECE9F7

Accessibility & contrast

On white

2.35
#AFA1DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#AFA1DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1DC
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1DC#FFFFFF#000000##000000
##AFA1DC1.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#93AADE
Deuteranopia (green-blind)
#95A8DA
Tritanopia (blue-blind)
#A6AAB6
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa1dc;
/* rgb */ color: rgb(175, 161, 220);
/* oklch */ color: oklch(74.2% 0.085 295.1);
Tailwind
colors: {
  custom: {
    50: '#c7bce7',
    500: '#afa1dc',
    950: '#000000',
  },
}
SCSS
$custom: #afa1dc;
$custom-light: #c7bce7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1dc",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 220
  },
  "hsl": {
    "h": 254.237,
    "s": 45.736,
    "l": 74.706
  },
  "oklch": {
    "l": 0.74198,
    "c": 0.08516,
    "h": 295.1
  },
  "luminance": 0.39771
}

Semantic roles & 50–950 ramp

primary
#AFA1DC
secondary
#EAEEDD
accent
#B92D98
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA1DC

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

Preview Lab → · Contrast checker → · Palette generator →

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