#AFA2ED#AFA2ED

#AFA2ED is a light, moderate violet. Relative luminance 0.411; OKLCH L 75.1% C 0.107 H 291.6°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#AFA2ED
RGBrgb(175, 162, 237)
HSLhsl(250, 68%, 78%)
HSVhsv(250, 32%, 93%)
CMYKcmyk(26.2%, 31.6%, 0%, 7.1%)
CIE-LABlab(70.22, 20.57, -35.94)
CIE-LCHlch(70.22, 41.41, 299.79°)
OKLaboklab(75.13% 0.0394 -0.0996)
OKLCHoklch(75.13% 0.107 291.6)
XYZxyz(45.8818, 41.0683, 85.6140)
Luminance0.4107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2ED #E0EDA2
analogous
#A2BAED #AFA2ED #D4A2ED
triadic
#AFA2ED #EDAFA2 #A2EDAF
tetradic
#AFA2ED #EDA2BA #E0EDA2 #A2EDD4
square
#AFA2ED #EDA2BA #E0EDA2 #A2EDD4
split-complementary
#AFA2ED #EDD4A2 #BAEDA2
monochromatic
#573BD9 #836FE3 #AFA2ED #DBD5F7 #E9E5FA

Accessibility & contrast

On white

2.28
#AFA2ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#AFA2ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2ED
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2ED#FFFFFF#000000##000000
##AFA2ED1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EADF0
Deuteranopia (green-blind)
#8FAAEB
Tritanopia (blue-blind)
#A2AFBD
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa2ed;
/* rgb */ color: rgb(175, 162, 237);
/* oklch */ color: oklch(75.1% 0.107 291.6);
Tailwind
colors: {
  custom: {
    50: '#c8bdf3',
    500: '#afa2ed',
    950: '#000000',
  },
}
SCSS
$custom: #afa2ed;
$custom-light: #c8bdf3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2ed",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 237
  },
  "hsl": {
    "h": 250.4,
    "s": 67.568,
    "l": 78.235
  },
  "oklch": {
    "l": 0.75125,
    "c": 0.10713,
    "h": 291.6
  },
  "luminance": 0.41069
}

Semantic roles & 50–950 ramp

primary
#AFA2ED
secondary
#EDF2D9
accent
#CF16AF
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2ED

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

Preview Lab → · Contrast checker → · Palette generator →

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