#AFA2D7#AFA2D7

#AFA2D7 is a light, moderate violet. Relative luminance 0.399; OKLCH L 74.2% C 0.077 H 295.7°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#AFA2D7
RGBrgb(175, 162, 215)
HSLhsl(255, 40%, 74%)
HSVhsv(255, 25%, 84%)
CMYKcmyk(18.6%, 24.7%, 0%, 15.7%)
CIE-LABlab(69.37, 15.45, -25.19)
CIE-LCHlch(69.37, 29.55, 301.53°)
OKLaboklab(74.19% 0.0333 -0.069)
OKLCHoklch(74.19% 0.077 295.7)
XYZxyz(42.8626, 39.8606, 69.7125)
Luminance0.3986 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2D7 #CAD7A2
analogous
#A2B0D7 #AFA2D7 #CAA2D7
triadic
#AFA2D7 #D7AFA2 #A2D7AF
tetradic
#AFA2D7 #D7A2B0 #CAD7A2 #A2D7CA
square
#AFA2D7 #D7A2B0 #CAD7A2 #A2D7CA
split-complementary
#AFA2D7 #D7CAA2 #B0D7A2
monochromatic
#654DB2 #8A77C5 #AFA2D7 #D4CDE9 #EDEAF6

Accessibility & contrast

On white

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

On black

8.97
#AFA2D7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2D7
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2D7#FFFFFF#000000##000000
##AFA2D71.002.348.978.97
#FFFFFF2.341.0021.0021.00
#0000008.9721.001.001.00
##0000008.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#96AAD9
Deuteranopia (green-blind)
#98A9D5
Tritanopia (blue-blind)
#A8AAB4
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa2d7;
/* rgb */ color: rgb(175, 162, 215);
/* oklch */ color: oklch(74.2% 0.077 295.7);
Tailwind
colors: {
  custom: {
    50: '#c7bde3',
    500: '#afa2d7',
    950: '#000000',
  },
}
SCSS
$custom: #afa2d7;
$custom-light: #c7bde3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2d7",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 215
  },
  "hsl": {
    "h": 254.717,
    "s": 39.85,
    "l": 73.922
  },
  "oklch": {
    "l": 0.74186,
    "c": 0.07662,
    "h": 295.7
  },
  "luminance": 0.39861
}

Semantic roles & 50–950 ramp

primary
#AFA2D7
secondary
#E9EDDE
accent
#B33393
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA2D7

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

Preview Lab → · Contrast checker → · Palette generator →

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