#AFA2D4#AFA2D4

#AFA2D4 is a light, moderate violet. Relative luminance 0.397; OKLCH L 74.1% C 0.072 H 296.5°. Best body text is #000000 at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#AFA2D4
RGBrgb(175, 162, 212)
HSLhsl(256, 37%, 73%)
HSVhsv(256, 24%, 83%)
CMYKcmyk(17.5%, 23.6%, 0%, 16.9%)
CIE-LABlab(69.26, 14.78, -23.70)
CIE-LCHlch(69.26, 27.93, 301.95°)
OKLaboklab(74.07% 0.0323 -0.0648)
OKLCHoklch(74.07% 0.072 296.5)
XYZxyz(42.4806, 39.7078, 67.7009)
Luminance0.3971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2D4 #C7D4A2
analogous
#A2AED4 #AFA2D4 #C8A2D4
triadic
#AFA2D4 #D4AFA2 #A2D4AF
tetradic
#AFA2D4 #D4A2AE #C7D4A2 #A2D4C8
square
#AFA2D4 #D4A2AE #C7D4A2 #A2D4C8
split-complementary
#AFA2D4 #D4C8A2 #AED4A2
monochromatic
#6850AC #8B78C1 #AFA2D4 #D3CCE7 #EDEAF5

Accessibility & contrast

On white

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

On black

8.94
#AFA2D4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2D4
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2D4#FFFFFF#000000##000000
##AFA2D41.002.358.948.94
#FFFFFF2.351.0021.0021.00
#0000008.9421.001.001.00
##0000008.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#97A9D6
Deuteranopia (green-blind)
#99A9D3
Tritanopia (blue-blind)
#A8AAB3
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa2d4;
/* rgb */ color: rgb(175, 162, 212);
/* oklch */ color: oklch(74.1% 0.072 296.5);
Tailwind
colors: {
  custom: {
    50: '#c7bde1',
    500: '#afa2d4',
    950: '#000000',
  },
}
SCSS
$custom: #afa2d4;
$custom-light: #c7bde1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2d4",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 212
  },
  "hsl": {
    "h": 255.6,
    "s": 36.765,
    "l": 73.333
  },
  "oklch": {
    "l": 0.74065,
    "c": 0.07246,
    "h": 296.5
  },
  "luminance": 0.39708
}

Semantic roles & 50–950 ramp

primary
#AFA2D4
secondary
#E9ECDF
accent
#B03690
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA2D4

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

Preview Lab → · Contrast checker → · Palette generator →

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