#AFA2EB#AFA2EB

#AFA2EB is a light, moderate violet. Relative luminance 0.410; OKLCH L 75.0% C 0.104 H 291.8°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#AFA2EB
RGBrgb(175, 162, 235)
HSLhsl(251, 65%, 78%)
HSVhsv(251, 31%, 92%)
CMYKcmyk(25.5%, 31.1%, 0%, 7.8%)
CIE-LABlab(70.14, 20.09, -34.97)
CIE-LCHlch(70.14, 40.33, 299.88°)
OKLaboklab(75.04% 0.0388 -0.0969)
OKLCHoklch(75.04% 0.104 291.8)
XYZxyz(45.5913, 40.9521, 84.0837)
Luminance0.4095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2EB #DEEBA2
analogous
#A2B9EB #AFA2EB #D3A2EB
triadic
#AFA2EB #EBAFA2 #A2EBAF
tetradic
#AFA2EB #EBA2B9 #DEEBA2 #A2EBD3
square
#AFA2EB #EBA2B9 #DEEBA2 #A2EBD3
split-complementary
#AFA2EB #EBD3A2 #B9EBA2
monochromatic
#583DD5 #8470E0 #AFA2EB #DAD4F6 #E9E6FA

Accessibility & contrast

On white

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

On black

9.19
#AFA2EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2EB
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2EB#FFFFFF#000000##000000
##AFA2EB1.002.289.199.19
#FFFFFF2.281.0021.0021.00
#0000009.1921.001.001.00
##0000009.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FADEE
Deuteranopia (green-blind)
#90AAE9
Tritanopia (blue-blind)
#A2AEBC
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa2eb;
/* rgb */ color: rgb(175, 162, 235);
/* oklch */ color: oklch(75.0% 0.104 291.8);
Tailwind
colors: {
  custom: {
    50: '#c8bdf1',
    500: '#afa2eb',
    950: '#000000',
  },
}
SCSS
$custom: #afa2eb;
$custom-light: #c8bdf1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2eb",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 235
  },
  "hsl": {
    "h": 250.685,
    "s": 64.602,
    "l": 77.843
  },
  "oklch": {
    "l": 0.75035,
    "c": 0.10437,
    "h": 291.8
  },
  "luminance": 0.40953
}

Semantic roles & 50–950 ramp

primary
#AFA2EB
secondary
#EDF1DA
accent
#CC19AC
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA2EB

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

Preview Lab → · Contrast checker → · Palette generator →

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