#AFA1DB#AFA1DB

#AFA1DB is a light, moderate violet. Relative luminance 0.397; OKLCH L 74.2% C 0.084 H 295.4°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#AFA1DB
RGBrgb(175, 161, 219)
HSLhsl(254, 45%, 75%)
HSVhsv(254, 26%, 86%)
CMYKcmyk(20.1%, 26.5%, 0%, 14.1%)
CIE-LABlab(69.27, 16.92, -27.55)
CIE-LCHlch(69.27, 32.33, 301.56°)
OKLaboklab(74.16% 0.0359 -0.0757)
OKLCHoklch(74.16% 0.084 295.4)
XYZxyz(43.2074, 39.7178, 72.3941)
Luminance0.3972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1DB #CDDBA1
analogous
#A1B0DB #AFA1DB #CCA1DB
triadic
#AFA1DB #DBAFA1 #A1DBAF
tetradic
#AFA1DB #DBA1B0 #CDDBA1 #A1DBCC
square
#AFA1DB #DBA1B0 #CDDBA1 #A1DBCC
split-complementary
#AFA1DB #DBCCA1 #B0DBA1
monochromatic
#6448B9 #8975CA #AFA1DB #D5CDEC #ECE9F7

Accessibility & contrast

On white

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

On black

8.94
#AFA1DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1DB
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1DB#FFFFFF#000000##000000
##AFA1DB1.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#94AADD
Deuteranopia (green-blind)
#95A8D9
Tritanopia (blue-blind)
#A7AAB5
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa1db;
/* rgb */ color: rgb(175, 161, 219);
/* oklch */ color: oklch(74.2% 0.084 295.4);
Tailwind
colors: {
  custom: {
    50: '#c7bce6',
    500: '#afa1db',
    950: '#000000',
  },
}
SCSS
$custom: #afa1db;
$custom-light: #c7bce6;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1db",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 219
  },
  "hsl": {
    "h": 254.483,
    "s": 44.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.74156,
    "c": 0.08377,
    "h": 295.4
  },
  "luminance": 0.39718
}

Semantic roles & 50–950 ramp

primary
#AFA1DB
secondary
#EAEDDE
accent
#B82E96
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA1DB

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

Preview Lab → · Contrast checker → · Palette generator →

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