#AFA1EB#AFA1EB

#AFA1EB is a light, moderate violet. Relative luminance 0.406; OKLCH L 74.8% C 0.106 H 292.3°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#AFA1EB
RGBrgb(175, 161, 235)
HSLhsl(251, 65%, 78%)
HSVhsv(251, 31%, 92%)
CMYKcmyk(25.5%, 31.5%, 0%, 7.8%)
CIE-LABlab(69.90, 20.65, -35.35)
CIE-LCHlch(69.90, 40.94, 300.30°)
OKLaboklab(74.85% 0.0402 -0.098)
OKLCHoklch(74.85% 0.106 292.3)
XYZxyz(45.4158, 40.6012, 84.0252)
Luminance0.4060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1EB #DDEBA1
analogous
#A1B8EB #AFA1EB #D4A1EB
triadic
#AFA1EB #EBAFA1 #A1EBAF
tetradic
#AFA1EB #EBA1B8 #DDEBA1 #A1EBD4
square
#AFA1EB #EBA1B8 #DDEBA1 #A1EBD4
split-complementary
#AFA1EB #EBD4A1 #B8EBA1
monochromatic
#593CD6 #846FE0 #AFA1EB #DAD3F6 #EAE6FA

Accessibility & contrast

On white

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

On black

9.12
#AFA1EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1EB
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1EB#FFFFFF#000000##000000
##AFA1EB1.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa1eb;
/* rgb */ color: rgb(175, 161, 235);
/* oklch */ color: oklch(74.8% 0.106 292.3);
Tailwind
colors: {
  custom: {
    50: '#c8bcf1',
    500: '#afa1eb',
    950: '#000000',
  },
}
SCSS
$custom: #afa1eb;
$custom-light: #c8bcf1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1eb",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 235
  },
  "hsl": {
    "h": 251.351,
    "s": 64.912,
    "l": 77.647
  },
  "oklch": {
    "l": 0.74846,
    "c": 0.1059,
    "h": 292.3
  },
  "luminance": 0.40602
}

Semantic roles & 50–950 ramp

primary
#AFA1EB
secondary
#EDF1DA
accent
#CD19AB
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA1EB

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

Preview Lab → · Contrast checker → · Palette generator →

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