#AFA2DC#AFA2DC

#AFA2DC is a light, moderate violet. Relative luminance 0.401; OKLCH L 74.4% C 0.084 H 294.6°. Best body text is #000000 at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#AFA2DC
RGBrgb(175, 162, 220)
HSLhsl(253, 45%, 75%)
HSVhsv(253, 26%, 86%)
CMYKcmyk(20.5%, 26.4%, 0%, 13.7%)
CIE-LABlab(69.56, 16.59, -27.65)
CIE-LCHlch(69.56, 32.25, 300.96°)
OKLaboklab(74.39% 0.0347 -0.076)
OKLCHoklch(74.39% 0.084 294.6)
XYZxyz(43.5149, 40.1215, 73.1480)
Luminance0.4012 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2DC #CFDCA2
analogous
#A2B2DC #AFA2DC #CCA2DC
triadic
#AFA2DC #DCAFA2 #A2DCAF
tetradic
#AFA2DC #DCA2B2 #CFDCA2 #A2DCCC
square
#AFA2DC #DCA2B2 #CFDCA2 #A2DCCC
split-complementary
#AFA2DC #DCCCA2 #B2DCA2
monochromatic
#6249BB #8976CB #AFA2DC #D5CEED #ECE9F7

Accessibility & contrast

On white

2.33
#AFA2DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.02
#AFA2DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2DC
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2DC#FFFFFF#000000##000000
##AFA2DC1.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#95AADE
Deuteranopia (green-blind)
#96A9DA
Tritanopia (blue-blind)
#A6ABB6
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #afa2dc;
/* rgb */ color: rgb(175, 162, 220);
/* oklch */ color: oklch(74.4% 0.084 294.6);
Tailwind
colors: {
  custom: {
    50: '#c7bde7',
    500: '#afa2dc',
    950: '#000000',
  },
}
SCSS
$custom: #afa2dc;
$custom-light: #c7bde7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2dc",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 220
  },
  "hsl": {
    "h": 253.448,
    "s": 45.313,
    "l": 74.902
  },
  "oklch": {
    "l": 0.74391,
    "c": 0.08357,
    "h": 294.6
  },
  "luminance": 0.40122
}

Semantic roles & 50–950 ramp

primary
#AFA2DC
secondary
#EAEEDD
accent
#B82D99
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2DC

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

Preview Lab → · Contrast checker → · Palette generator →

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