#AFA2D5#AFA2D5

#AFA2D5 is a light, moderate violet. Relative luminance 0.398; OKLCH L 74.1% C 0.074 H 296.2°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#AFA2D5
RGBrgb(175, 162, 213)
HSLhsl(255, 38%, 74%)
HSVhsv(255, 24%, 84%)
CMYKcmyk(17.8%, 23.9%, 0%, 16.5%)
CIE-LABlab(69.30, 15.00, -24.20)
CIE-LCHlch(69.30, 28.47, 301.80°)
OKLaboklab(74.11% 0.0327 -0.0662)
OKLCHoklch(74.11% 0.074 296.2)
XYZxyz(42.6072, 39.7585, 68.3673)
Luminance0.3976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2D5 #C8D5A2
analogous
#A2AED5 #AFA2D5 #C8A2D5
triadic
#AFA2D5 #D5AFA2 #A2D5AF
tetradic
#AFA2D5 #D5A2AE #C8D5A2 #A2D5C8
square
#AFA2D5 #D5A2AE #C8D5A2 #A2D5C8
split-complementary
#AFA2D5 #D5C8A2 #AED5A2
monochromatic
#674FAE #8B78C2 #AFA2D5 #D3CCE8 #EDEAF5

Accessibility & contrast

On white

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

On black

8.95
#AFA2D5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2D5
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2D5#FFFFFF#000000##000000
##AFA2D51.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#97A9D7
Deuteranopia (green-blind)
#99A9D4
Tritanopia (blue-blind)
#A8AAB4
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa2d5;
/* rgb */ color: rgb(175, 162, 213);
/* oklch */ color: oklch(74.1% 0.074 296.2);
Tailwind
colors: {
  custom: {
    50: '#c7bde2',
    500: '#afa2d5',
    950: '#000000',
  },
}
SCSS
$custom: #afa2d5;
$custom-light: #c7bde2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2d5",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 213
  },
  "hsl": {
    "h": 255.294,
    "s": 37.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.74105,
    "c": 0.07385,
    "h": 296.2
  },
  "luminance": 0.39759
}

Semantic roles & 50–950 ramp

primary
#AFA2D5
secondary
#E9ECDF
accent
#B13591
background
#FCFBFD
surface
#F8F6FB
border
#D1D0D4
text
#131215
muted
#828183

Preview Lab

Preview with #AFA2D5

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

Preview Lab → · Contrast checker → · Palette generator →

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