#AFA6DC#AFA6DC

#AFA6DC is a light, moderate violet. Relative luminance 0.416; OKLCH L 75.2% C 0.077 H 292.1°. Best body text is #000000 at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#AFA6DC
RGBrgb(175, 166, 220)
HSLhsl(250, 44%, 76%)
HSVhsv(250, 25%, 86%)
CMYKcmyk(20.5%, 24.5%, 0%, 13.7%)
CIE-LABlab(70.56, 14.35, -26.11)
CIE-LCHlch(70.56, 29.79, 298.80°)
OKLaboklab(75.17% 0.0291 -0.0717)
OKLCHoklch(75.17% 0.077 292.1)
XYZxyz(44.2307, 41.5532, 73.3866)
Luminance0.4155 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6DC #D3DCA6
analogous
#A6B8DC #AFA6DC #CAA6DC
triadic
#AFA6DC #DCAFA6 #A6DCAF
tetradic
#AFA6DC #DCA6B8 #D3DCA6 #A6DCCA
square
#AFA6DC #DCA6B8 #D3DCA6 #A6DCCA
split-complementary
#AFA6DC #DCCAA6 #B8DCA6
monochromatic
#604EB9 #887ACB #AFA6DC #D6D2ED #EBE9F6

Accessibility & contrast

On white

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

On black

9.31
#AFA6DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6DC
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6DC#FFFFFF#000000##000000
##AFA6DC1.002.269.319.31
#FFFFFF2.261.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#99ADDE
Deuteranopia (green-blind)
#9AACDA
Tritanopia (blue-blind)
#A6AFB9
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa6dc;
/* rgb */ color: rgb(175, 166, 220);
/* oklch */ color: oklch(75.2% 0.077 292.1);
Tailwind
colors: {
  custom: {
    50: '#c7c0e7',
    500: '#afa6dc',
    950: '#000000',
  },
}
SCSS
$custom: #afa6dc;
$custom-light: #c7c0e7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6dc",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 220
  },
  "hsl": {
    "h": 250,
    "s": 43.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75168,
    "c": 0.07733,
    "h": 292.1
  },
  "luminance": 0.41554
}

Semantic roles & 50–950 ramp

primary
#AFA6DC
secondary
#EBEDDE
accent
#B72FA0
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA6DC

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

Preview Lab → · Contrast checker → · Palette generator →

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