#AFA1EF#AFA1EF

#AFA1EF is a light, moderate violet. Relative luminance 0.408; OKLCH L 75.0% C 0.111 H 291.7°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#AFA1EF
RGBrgb(175, 161, 239)
HSLhsl(251, 71%, 78%)
HSVhsv(251, 33%, 94%)
CMYKcmyk(26.8%, 32.6%, 0%, 6.3%)
CIE-LABlab(70.06, 21.61, -37.28)
CIE-LCHlch(70.06, 43.09, 300.10°)
OKLaboklab(75.03% 0.0412 -0.1035)
OKLCHoklch(75.03% 0.111 291.7)
XYZxyz(46.0002, 40.8350, 87.1030)
Luminance0.4084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1EF #E1EFA1
analogous
#A1BAEF #AFA1EF #D6A1EF
triadic
#AFA1EF #EFAFA1 #A1EFAF
tetradic
#AFA1EF #EFA1BA #E1EFA1 #A1EFD6
square
#AFA1EF #EFA1BA #E1EFA1 #A1EFD6
split-complementary
#AFA1EF #EFD6A1 #BAEFA1
monochromatic
#5638DD #826DE6 #AFA1EF #DCD5F8 #E9E5FB

Accessibility & contrast

On white

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

On black

9.17
#AFA1EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1EF
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1EF#FFFFFF#000000##000000
##AFA1EF1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CACF2
Deuteranopia (green-blind)
#8DAAED
Tritanopia (blue-blind)
#A1AEBD
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa1ef;
/* rgb */ color: rgb(175, 161, 239);
/* oklch */ color: oklch(75.0% 0.111 291.7);
Tailwind
colors: {
  custom: {
    50: '#c8bcf4',
    500: '#afa1ef',
    950: '#000000',
  },
}
SCSS
$custom: #afa1ef;
$custom-light: #c8bcf4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1ef",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 239
  },
  "hsl": {
    "h": 250.769,
    "s": 70.909,
    "l": 78.431
  },
  "oklch": {
    "l": 0.75026,
    "c": 0.11141,
    "h": 291.7
  },
  "luminance": 0.40836
}

Semantic roles & 50–950 ramp

primary
#AFA1EF
secondary
#EEF2D9
accent
#D313B0
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA1EF

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

Preview Lab → · Contrast checker → · Palette generator →

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