#AFA1E9#AFA1E9

#AFA1E9 is a light, moderate violet. Relative luminance 0.405; OKLCH L 74.8% C 0.103 H 292.6°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#AFA1E9
RGBrgb(175, 161, 233)
HSLhsl(252, 62%, 77%)
HSVhsv(252, 31%, 91%)
CMYKcmyk(24.9%, 30.9%, 0%, 8.6%)
CIE-LABlab(69.81, 20.18, -34.38)
CIE-LCHlch(69.81, 39.87, 300.41°)
OKLaboklab(74.76% 0.0397 -0.0952)
OKLCHoklch(74.76% 0.103 292.6)
XYZxyz(45.1285, 40.4863, 82.5120)
Luminance0.4049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1E9 #DBE9A1
analogous
#A1B7E9 #AFA1E9 #D3A1E9
triadic
#AFA1E9 #E9AFA1 #A1E9AF
tetradic
#AFA1E9 #E9A1B7 #DBE9A1 #A1E9D3
square
#AFA1E9 #E9A1B7 #DBE9A1 #A1E9D3
split-complementary
#AFA1E9 #E9D3A1 #B7E9A1
monochromatic
#5B3ED2 #856FDD #AFA1E9 #D9D3F5 #EAE6F9

Accessibility & contrast

On white

2.31
#AFA1E9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.10
#AFA1E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1E9
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1E9#FFFFFF#000000##000000
##AFA1E91.002.319.109.10
#FFFFFF2.311.0021.0021.00
#0000009.1021.001.001.00
##0000009.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FACEC
Deuteranopia (green-blind)
#90A9E7
Tritanopia (blue-blind)
#A3ADBB
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa1e9;
/* rgb */ color: rgb(175, 161, 233);
/* oklch */ color: oklch(74.8% 0.103 292.6);
Tailwind
colors: {
  custom: {
    50: '#c8bcf0',
    500: '#afa1e9',
    950: '#000000',
  },
}
SCSS
$custom: #afa1e9;
$custom-light: #c8bcf0;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1e9",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 233
  },
  "hsl": {
    "h": 251.667,
    "s": 62.069,
    "l": 77.255
  },
  "oklch": {
    "l": 0.74757,
    "c": 0.10314,
    "h": 292.6
  },
  "luminance": 0.40487
}

Semantic roles & 50–950 ramp

primary
#AFA1E9
secondary
#ECF1DA
accent
#CA1CA8
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA1E9

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

Preview Lab → · Contrast checker → · Palette generator →

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