#AFA1FE#AFA1FE

#AFA1FE is a light, vivid blue. Relative luminance 0.418; OKLCH L 75.7% C 0.132 H 289.8°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#AFA1FE
RGBrgb(175, 161, 254)
HSLhsl(249, 98%, 81%)
HSVhsv(249, 37%, 100%)
CMYKcmyk(31.1%, 36.6%, 0%, 0.4%)
CIE-LABlab(70.70, 25.30, -44.44)
CIE-LCHlch(70.70, 51.13, 299.65°)
OKLaboklab(75.73% 0.0446 -0.1241)
OKLCHoklch(75.73% 0.132 289.8)
XYZxyz(48.3088, 41.7584, 99.2617)
Luminance0.4176 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1FE #F0FEA1
analogous
#A1C2FE #AFA1FE #DEA1FE
triadic
#AFA1FE #FEAFA1 #A1FEAF
tetradic
#AFA1FE #FEA1C2 #F0FEA1 #A1FEDE
square
#AFA1FE #FEA1C2 #F0FEA1 #A1FEDE
split-complementary
#AFA1FE #FEDEA1 #C2FEA1
monochromatic
#4828FD #7B64FD #AFA1FE #E3DEFF #E5E1FF

Accessibility & contrast

On white

2.25
#AFA1FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#AFA1FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1FE
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1FE#FFFFFF#000000##000000
##AFA1FE1.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa1fe;
/* rgb */ color: rgb(175, 161, 254);
/* oklch */ color: oklch(75.7% 0.132 289.8);
Tailwind
colors: {
  custom: {
    50: '#c9bcff',
    500: '#afa1fe',
    950: '#000000',
  },
}
SCSS
$custom: #afa1fe;
$custom-light: #c9bcff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1fe",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 254
  },
  "hsl": {
    "h": 249.032,
    "s": 97.895,
    "l": 81.373
  },
  "oklch": {
    "l": 0.75731,
    "c": 0.13191,
    "h": 289.8
  },
  "luminance": 0.41759
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA1FE

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

Preview Lab → · Contrast checker → · Palette generator →

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