#AFA2EA#AFA2EA

#AFA2EA is a light, moderate violet. Relative luminance 0.409; OKLCH L 75.0% C 0.103 H 292.0°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#AFA2EA
RGBrgb(175, 162, 234)
HSLhsl(251, 63%, 78%)
HSVhsv(251, 31%, 92%)
CMYKcmyk(25.2%, 30.8%, 0%, 8.2%)
CIE-LABlab(70.10, 19.86, -34.49)
CIE-LCHlch(70.10, 39.79, 299.93°)
OKLaboklab(74.99% 0.0386 -0.0955)
OKLCHoklch(74.99% 0.103 292)
XYZxyz(45.4472, 40.8945, 83.3250)
Luminance0.4089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA2EA #DDEAA2
analogous
#A2B9EA #AFA2EA #D3A2EA
triadic
#AFA2EA #EAAFA2 #A2EAAF
tetradic
#AFA2EA #EAA2B9 #DDEAA2 #A2EAD3
square
#AFA2EA #EAA2B9 #DDEAA2 #A2EAD3
split-complementary
#AFA2EA #EAD3A2 #B9EAA2
monochromatic
#593ED3 #8470DF #AFA2EA #DAD4F5 #EAE6F9

Accessibility & contrast

On white

2.29
#AFA2EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#AFA2EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA2EA
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA2EA#FFFFFF#000000##000000
##AFA2EA1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#90ACED
Deuteranopia (green-blind)
#90AAE8
Tritanopia (blue-blind)
#A2AEBC
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa2ea;
/* rgb */ color: rgb(175, 162, 234);
/* oklch */ color: oklch(75.0% 0.103 292.0);
Tailwind
colors: {
  custom: {
    50: '#c8bdf1',
    500: '#afa2ea',
    950: '#000000',
  },
}
SCSS
$custom: #afa2ea;
$custom-light: #c8bdf1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa2ea",
  "rgb": {
    "r": 175,
    "g": 162,
    "b": 234
  },
  "hsl": {
    "h": 250.833,
    "s": 63.158,
    "l": 77.647
  },
  "oklch": {
    "l": 0.74991,
    "c": 0.10298,
    "h": 292
  },
  "luminance": 0.40895
}

Semantic roles & 50–950 ramp

primary
#AFA2EA
secondary
#EDF1DA
accent
#CB1BAB
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA2EA

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

Preview Lab → · Contrast checker → · Palette generator →

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