#AFA1FB#AFA1FB

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

Color values

HEX#AFA1FB
RGBrgb(175, 161, 251)
HSLhsl(249, 92%, 81%)
HSVhsv(249, 36%, 98%)
CMYKcmyk(30.3%, 35.9%, 0%, 1.6%)
CIE-LABlab(70.57, 24.55, -43.02)
CIE-LCHlch(70.57, 49.53, 299.72°)
OKLaboklab(75.59% 0.044 -0.12)
OKLCHoklch(75.59% 0.128 290.1)
XYZxyz(47.8322, 41.5677, 96.7514)
Luminance0.4157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1FB #EDFBA1
analogous
#A1C0FB #AFA1FB #DCA1FB
triadic
#AFA1FB #FBAFA1 #A1FBAF
tetradic
#AFA1FB #FBA1C0 #EDFBA1 #A1FBDC
square
#AFA1FB #FBA1C0 #EDFBA1 #A1FBDC
split-complementary
#AFA1FB #FBDCA1 #C0FBA1
monochromatic
#4B2CF6 #7D66F9 #AFA1FB #E1DCFD #E6E2FE

Accessibility & contrast

On white

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

On black

9.31
#AFA1FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1FB
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1FB#FFFFFF#000000##000000
##AFA1FB1.002.259.319.31
#FFFFFF2.251.0021.0021.00
#0000009.3121.001.001.00
##0000009.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#87AEFF
Deuteranopia (green-blind)
#88ABF9
Tritanopia (blue-blind)
#9DB1C2
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa1fb;
/* rgb */ color: rgb(175, 161, 251);
/* oklch */ color: oklch(75.6% 0.128 290.1);
Tailwind
colors: {
  custom: {
    50: '#c9bcfd',
    500: '#afa1fb',
    950: '#000000',
  },
}
SCSS
$custom: #afa1fb;
$custom-light: #c9bcfd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1fb",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 251
  },
  "hsl": {
    "h": 249.333,
    "s": 91.837,
    "l": 80.784
  },
  "oklch": {
    "l": 0.75586,
    "c": 0.12782,
    "h": 290.1
  },
  "luminance": 0.41569
}

Semantic roles & 50–950 ramp

primary
#AFA1FB
secondary
#F1F6D5
accent
#E600C2
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA1FB

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

Preview Lab → · Contrast checker → · Palette generator →

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