#AFA2E5#AFA2E5

#AFA2E5 is a light, moderate violet. Relative luminance 0.406; OKLCH L 74.8% C 0.096 H 292.8°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#AFA2E5
RGBrgb(175, 162, 229)
HSLhsl(252, 56%, 77%)
HSVhsv(252, 29%, 90%)
CMYKcmyk(23.6%, 29.3%, 0%, 10.2%)
CIE-LABlab(69.90, 18.67, -32.06)
CIE-LCHlch(69.90, 37.10, 300.22°)
OKLaboklab(74.77% 0.0373 -0.0885)
OKLCHoklch(74.77% 0.096 292.8)
XYZxyz(44.7390, 40.6112, 79.5952)
Luminance0.4061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2E5 #D8E5A2
analogous
#A2B7E5 #AFA2E5 #D1A2E5
triadic
#AFA2E5 #E5AFA2 #A2E5AF
tetradic
#AFA2E5 #E5A2B7 #D8E5A2 #A2E5D1
square
#AFA2E5 #E5A2B7 #D8E5A2 #A2E5D1
split-complementary
#AFA2E5 #E5D1A2 #B7E5A2
monochromatic
#5D42CA #8672D8 #AFA2E5 #D8D2F2 #EAE7F8

Accessibility & contrast

On white

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

On black

9.12
#AFA2E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2E5
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2E5#FFFFFF#000000##000000
##AFA2E51.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#91ACE8
Deuteranopia (green-blind)
#93AAE3
Tritanopia (blue-blind)
#A4ADBA
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa2e5;
/* rgb */ color: rgb(175, 162, 229);
/* oklch */ color: oklch(74.8% 0.096 292.8);
Tailwind
colors: {
  custom: {
    50: '#c8bded',
    500: '#afa2e5',
    950: '#000000',
  },
}
SCSS
$custom: #afa2e5;
$custom-light: #c8bded;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2e5",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 229
  },
  "hsl": {
    "h": 251.642,
    "s": 56.303,
    "l": 76.667
  },
  "oklch": {
    "l": 0.74772,
    "c": 0.09606,
    "h": 292.8
  },
  "luminance": 0.40612
}

Semantic roles & 50–950 ramp

primary
#AFA2E5
secondary
#ECF0DB
accent
#C422A4
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2E5

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

Preview Lab → · Contrast checker → · Palette generator →

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