#AFA2EF#AFA2EF

#AFA2EF is a light, moderate violet. Relative luminance 0.412; OKLCH L 75.2% C 0.110 H 291.3°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#AFA2EF
RGBrgb(175, 162, 239)
HSLhsl(250, 71%, 79%)
HSVhsv(250, 32%, 94%)
CMYKcmyk(26.8%, 32.2%, 0%, 6.3%)
CIE-LABlab(70.31, 21.05, -36.90)
CIE-LCHlch(70.31, 42.48, 299.71°)
OKLaboklab(75.22% 0.0398 -0.1024)
OKLCHoklch(75.22% 0.11 291.3)
XYZxyz(46.1757, 41.1859, 87.1615)
Luminance0.4119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2EF #E2EFA2
analogous
#A2BBEF #AFA2EF #D5A2EF
triadic
#AFA2EF #EFAFA2 #A2EFAF
tetradic
#AFA2EF #EFA2BB #E2EFA2 #A2EFD5
square
#AFA2EF #EFA2BB #E2EFA2 #A2EFD5
split-complementary
#AFA2EF #EFD5A2 #BBEFA2
monochromatic
#553ADD #826EE6 #AFA2EF #DCD6F8 #E9E5FB

Accessibility & contrast

On white

2.27
#AFA2EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.24
#AFA2EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2EF
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2EF#FFFFFF#000000##000000
##AFA2EF1.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EADF2
Deuteranopia (green-blind)
#8EAAED
Tritanopia (blue-blind)
#A1AFBE
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa2ef;
/* rgb */ color: rgb(175, 162, 239);
/* oklch */ color: oklch(75.2% 0.110 291.3);
Tailwind
colors: {
  custom: {
    50: '#c8bdf4',
    500: '#afa2ef',
    950: '#000000',
  },
}
SCSS
$custom: #afa2ef;
$custom-light: #c8bdf4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2ef",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 239
  },
  "hsl": {
    "h": 250.13,
    "s": 70.642,
    "l": 78.627
  },
  "oklch": {
    "l": 0.75215,
    "c": 0.10988,
    "h": 291.3
  },
  "luminance": 0.41187
}

Semantic roles & 50–950 ramp

primary
#AFA2EF
secondary
#EEF2D9
accent
#D313B2
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2EF

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

Preview Lab → · Contrast checker → · Palette generator →

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