#AFA1FC#AFA1FC

#AFA1FC is a light, vivid blue. Relative luminance 0.416; OKLCH L 75.6% C 0.129 H 290.0°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#AFA1FC
RGBrgb(175, 161, 252)
HSLhsl(249, 94%, 81%)
HSVhsv(249, 36%, 99%)
CMYKcmyk(30.6%, 36.1%, 0%, 1.2%)
CIE-LABlab(70.62, 24.80, -43.49)
CIE-LCHlch(70.62, 50.06, 299.70°)
OKLaboklab(75.63% 0.0442 -0.1214)
OKLCHoklch(75.63% 0.129 290)
XYZxyz(47.9902, 41.6310, 97.5837)
Luminance0.4163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1FC #EEFCA1
analogous
#A1C0FC #AFA1FC #DCA1FC
triadic
#AFA1FC #FCAFA1 #A1FCAF
tetradic
#AFA1FC #FCA1C0 #EEFCA1 #A1FCDC
square
#AFA1FC #FCA1C0 #EEFCA1 #A1FCDC
split-complementary
#AFA1FC #FCDCA1 #C0FCA1
monochromatic
#4A2AF8 #7D66FA #AFA1FC #E1DCFE #E6E1FE

Accessibility & contrast

On white

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

On black

9.33
#AFA1FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1FC
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1FC#FFFFFF#000000##000000
##AFA1FC1.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#87AEFF
Deuteranopia (green-blind)
#87ABFA
Tritanopia (blue-blind)
#9DB1C3
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa1fc;
/* rgb */ color: rgb(175, 161, 252);
/* oklch */ color: oklch(75.6% 0.129 290.0);
Tailwind
colors: {
  custom: {
    50: '#c9bcfd',
    500: '#afa1fc',
    950: '#000000',
  },
}
SCSS
$custom: #afa1fc;
$custom-light: #c9bcfd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1fc",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 252
  },
  "hsl": {
    "h": 249.231,
    "s": 93.814,
    "l": 80.98
  },
  "oklch": {
    "l": 0.75634,
    "c": 0.1292,
    "h": 290
  },
  "luminance": 0.41632
}

Semantic roles & 50–950 ramp

primary
#AFA1FC
secondary
#F1F6D5
accent
#E600C2
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA1FC

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

Preview Lab → · Contrast checker → · Palette generator →

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