#AFA1FF#AFA1FF

#AFA1FF is a light, vivid blue. Relative luminance 0.418; OKLCH L 75.8% C 0.133 H 289.7°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#AFA1FF
RGBrgb(175, 161, 255)
HSLhsl(249, 100%, 82%)
HSVhsv(249, 37%, 100%)
CMYKcmyk(31.4%, 36.9%, 0%, 0%)
CIE-LABlab(70.75, 25.55, -44.91)
CIE-LCHlch(70.75, 51.67, 299.64°)
OKLaboklab(75.78% 0.0448 -0.1255)
OKLCHoklch(75.78% 0.133 289.7)
XYZxyz(48.4694, 41.8226, 100.1072)
Luminance0.4182 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1FF #F1FFA1
analogous
#A1C2FF #AFA1FF #DEA1FF
triadic
#AFA1FF #FFAFA1 #A1FFAF
tetradic
#AFA1FF #FFA1C2 #F1FFA1 #A1FFDE
square
#AFA1FF #FFA1C2 #F1FFA1 #A1FFDE
split-complementary
#AFA1FF #FFDEA1 #C2FFA1
monochromatic
#4727FF #7B64FF #AFA1FF #E3DEFF #E5E0FF

Accessibility & contrast

On white

2.24
#AFA1FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.36
#AFA1FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1FF
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1FF#FFFFFF#000000##000000
##AFA1FF1.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#85AFFF
Deuteranopia (green-blind)
#85ABFD
Tritanopia (blue-blind)
#9CB2C4
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa1ff;
/* rgb */ color: rgb(175, 161, 255);
/* oklch */ color: oklch(75.8% 0.133 289.7);
Tailwind
colors: {
  custom: {
    50: '#c9bcff',
    500: '#afa1ff',
    950: '#000000',
  },
}
SCSS
$custom: #afa1ff;
$custom-light: #c9bcff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1ff",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 255
  },
  "hsl": {
    "h": 248.936,
    "s": 100,
    "l": 81.569
  },
  "oklch": {
    "l": 0.75779,
    "c": 0.13327,
    "h": 289.7
  },
  "luminance": 0.41824
}

Semantic roles & 50–950 ramp

primary
#AFA1FF
secondary
#F2F7D4
accent
#E600C3
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA1FF

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

Preview Lab → · Contrast checker → · Palette generator →

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