#AFA2E4#AFA2E4

#AFA2E4 is a light, moderate violet. Relative luminance 0.406; OKLCH L 74.7% C 0.095 H 293.0°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#AFA2E4
RGBrgb(175, 162, 228)
HSLhsl(252, 55%, 76%)
HSVhsv(252, 29%, 89%)
CMYKcmyk(23.2%, 28.9%, 0%, 10.6%)
CIE-LABlab(69.86, 18.44, -31.57)
CIE-LCHlch(69.86, 36.56, 300.29°)
OKLaboklab(74.73% 0.037 -0.0871)
OKLCHoklch(74.73% 0.095 293)
XYZxyz(44.5998, 40.5555, 78.8620)
Luminance0.4056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2E4 #D7E4A2
analogous
#A2B6E4 #AFA2E4 #D0A2E4
triadic
#AFA2E4 #E4AFA2 #A2E4AF
tetradic
#AFA2E4 #E4A2B6 #D7E4A2 #A2E4D0
square
#AFA2E4 #E4A2B6 #D7E4A2 #A2E4D0
split-complementary
#AFA2E4 #E4D0A2 #B6E4A2
monochromatic
#5D43C8 #8673D6 #AFA2E4 #D8D1F2 #EBE7F8

Accessibility & contrast

On white

2.30
#AFA2E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.11
#AFA2E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2E4
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2E4#FFFFFF#000000##000000
##AFA2E41.002.309.119.11
#FFFFFF2.301.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#92ACE7
Deuteranopia (green-blind)
#93AAE2
Tritanopia (blue-blind)
#A4ADB9
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa2e4;
/* rgb */ color: rgb(175, 162, 228);
/* oklch */ color: oklch(74.7% 0.095 293.0);
Tailwind
colors: {
  custom: {
    50: '#c8bdec',
    500: '#afa2e4',
    950: '#000000',
  },
}
SCSS
$custom: #afa2e4;
$custom-light: #c8bdec;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2e4",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 228
  },
  "hsl": {
    "h": 251.818,
    "s": 55,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74729,
    "c": 0.09468,
    "h": 293
  },
  "luminance": 0.40556
}

Semantic roles & 50–950 ramp

primary
#AFA2E4
secondary
#EBEFDC
accent
#C323A3
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2E4

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

Preview Lab → · Contrast checker → · Palette generator →

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