#AFA2D2#AFA2D2

#AFA2D2 is a light, moderate violet. Relative luminance 0.396; OKLCH L 74.0% C 0.070 H 297.1°. Best body text is #000000 at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#AFA2D2
RGBrgb(175, 162, 210)
HSLhsl(256, 35%, 73%)
HSVhsv(256, 23%, 82%)
CMYKcmyk(16.7%, 22.9%, 0%, 17.6%)
CIE-LABlab(69.19, 14.34, -22.71)
CIE-LCHlch(69.19, 26.86, 302.27°)
OKLaboklab(73.99% 0.0317 -0.062)
OKLCHoklch(73.99% 0.07 297.1)
XYZxyz(42.2299, 39.6076, 66.3805)
Luminance0.3961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2D2 #C5D2A2
analogous
#A2ADD2 #AFA2D2 #C7A2D2
triadic
#AFA2D2 #D2AFA2 #A2D2AF
tetradic
#AFA2D2 #D2A2AD #C5D2A2 #A2D2C7
square
#AFA2D2 #D2A2AD #C5D2A2 #A2D2C7
split-complementary
#AFA2D2 #D2C7A2 #ADD2A2
monochromatic
#6951A8 #8C79BE #AFA2D2 #D2CBE6 #EDEAF5

Accessibility & contrast

On white

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

On black

8.92
#AFA2D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2D2
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2D2#FFFFFF#000000##000000
##AFA2D21.002.358.928.92
#FFFFFF2.351.0021.0021.00
#0000008.9221.001.001.00
##0000008.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#98A9D4
Deuteranopia (green-blind)
#9AA8D1
Tritanopia (blue-blind)
#A9A9B2
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa2d2;
/* rgb */ color: rgb(175, 162, 210);
/* oklch */ color: oklch(74.0% 0.070 297.1);
Tailwind
colors: {
  custom: {
    50: '#c7bde0',
    500: '#afa2d2',
    950: '#000000',
  },
}
SCSS
$custom: #afa2d2;
$custom-light: #c7bde0;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2d2",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 210
  },
  "hsl": {
    "h": 256.25,
    "s": 34.783,
    "l": 72.941
  },
  "oklch": {
    "l": 0.73986,
    "c": 0.06969,
    "h": 297.1
  },
  "luminance": 0.39608
}

Semantic roles & 50–950 ramp

primary
#AFA2D2
secondary
#E8ECDF
accent
#AE388E
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA2D2

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

Preview Lab → · Contrast checker → · Palette generator →

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