#AFA1EC#AFA1EC

#AFA1EC is a light, moderate violet. Relative luminance 0.407; OKLCH L 74.9% C 0.107 H 292.2°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#AFA1EC
RGBrgb(175, 161, 236)
HSLhsl(251, 66%, 78%)
HSVhsv(251, 32%, 93%)
CMYKcmyk(25.8%, 31.8%, 0%, 7.5%)
CIE-LABlab(69.94, 20.89, -35.84)
CIE-LCHlch(69.94, 41.48, 300.24°)
OKLaboklab(74.89% 0.0405 -0.0993)
OKLCHoklch(74.89% 0.107 292.2)
XYZxyz(45.5607, 40.6592, 84.7882)
Luminance0.4066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1EC #DEECA1
analogous
#A1B8EC #AFA1EC #D4A1EC
triadic
#AFA1EC #ECAFA1 #A1ECAF
tetradic
#AFA1EC #ECA1B8 #DEECA1 #A1ECD4
square
#AFA1EC #ECA1B8 #DEECA1 #A1ECD4
split-complementary
#AFA1EC #ECD4A1 #B8ECA1
monochromatic
#583BD7 #846EE2 #AFA1EC #DAD4F6 #E9E6FA

Accessibility & contrast

On white

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

On black

9.13
#AFA1EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1EC
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1EC#FFFFFF#000000##000000
##AFA1EC1.002.309.139.13
#FFFFFF2.301.0021.0021.00
#0000009.1321.001.001.00
##0000009.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EACEF
Deuteranopia (green-blind)
#8FAAEA
Tritanopia (blue-blind)
#A2AEBC
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa1ec;
/* rgb */ color: rgb(175, 161, 236);
/* oklch */ color: oklch(74.9% 0.107 292.2);
Tailwind
colors: {
  custom: {
    50: '#c8bcf2',
    500: '#afa1ec',
    950: '#000000',
  },
}
SCSS
$custom: #afa1ec;
$custom-light: #c8bcf2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1ec",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 236
  },
  "hsl": {
    "h": 251.2,
    "s": 66.372,
    "l": 77.843
  },
  "oklch": {
    "l": 0.74891,
    "c": 0.10728,
    "h": 292.2
  },
  "luminance": 0.4066
}

Semantic roles & 50–950 ramp

primary
#AFA1EC
secondary
#EDF1DA
accent
#CE17AC
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA1EC

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

Preview Lab → · Contrast checker → · Palette generator →

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