#AFA1DD#AFA1DD

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

Color values

HEX#AFA1DD
RGBrgb(175, 161, 221)
HSLhsl(254, 47%, 75%)
HSVhsv(254, 27%, 87%)
CMYKcmyk(20.8%, 27.1%, 0%, 13.3%)
CIE-LABlab(69.34, 17.38, -28.53)
CIE-LCHlch(69.34, 33.40, 301.34°)
OKLaboklab(74.24% 0.0365 -0.0785)
OKLCHoklch(74.24% 0.087 294.9)
XYZxyz(43.4723, 39.8238, 73.7891)
Luminance0.3982 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1DD #CFDDA1
analogous
#A1B1DD #AFA1DD #CDA1DD
triadic
#AFA1DD #DDAFA1 #A1DDAF
tetradic
#AFA1DD #DDA1B1 #CFDDA1 #A1DDCD
square
#AFA1DD #DDA1B1 #CFDDA1 #A1DDCD
split-complementary
#AFA1DD #DDCDA1 #B1DDA1
monochromatic
#6347BC #8974CD #AFA1DD #D5CEED #ECE9F7

Accessibility & contrast

On white

2.34
#AFA1DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#AFA1DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1DD
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1DD#FFFFFF#000000##000000
##AFA1DD1.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93AAE0
Deuteranopia (green-blind)
#95A8DB
Tritanopia (blue-blind)
#A6ABB6
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa1dd;
/* rgb */ color: rgb(175, 161, 221);
/* oklch */ color: oklch(74.2% 0.087 294.9);
Tailwind
colors: {
  custom: {
    50: '#c7bce7',
    500: '#afa1dd',
    950: '#000000',
  },
}
SCSS
$custom: #afa1dd;
$custom-light: #c7bce7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1dd",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 221
  },
  "hsl": {
    "h": 254,
    "s": 46.875,
    "l": 74.902
  },
  "oklch": {
    "l": 0.74239,
    "c": 0.08654,
    "h": 294.9
  },
  "luminance": 0.39824
}

Semantic roles & 50–950 ramp

primary
#AFA1DD
secondary
#EAEEDD
accent
#BA2B99
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA1DD

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

Preview Lab → · Contrast checker → · Palette generator →

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