#AFA1FD#AFA1FD

#AFA1FD is a light, vivid blue. Relative luminance 0.417; OKLCH L 75.7% C 0.131 H 289.9°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#AFA1FD
RGBrgb(175, 161, 253)
HSLhsl(249, 96%, 81%)
HSVhsv(249, 36%, 99%)
CMYKcmyk(30.8%, 36.4%, 0%, 0.8%)
CIE-LABlab(70.66, 25.05, -43.96)
CIE-LCHlch(70.66, 50.60, 299.67°)
OKLaboklab(75.68% 0.0444 -0.1228)
OKLCHoklch(75.68% 0.131 289.9)
XYZxyz(48.1491, 41.6945, 98.4205)
Luminance0.4170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA1FD #EFFDA1
analogous
#A1C1FD #AFA1FD #DDA1FD
triadic
#AFA1FD #FDAFA1 #A1FDAF
tetradic
#AFA1FD #FDA1C1 #EFFDA1 #A1FDDD
square
#AFA1FD #FDA1C1 #EFFDA1 #A1FDDD
split-complementary
#AFA1FD #FDDDA1 #C1FDA1
monochromatic
#4929FA #7C65FC #AFA1FD #E2DDFE #E5E1FE

Accessibility & contrast

On white

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

On black

9.34
#AFA1FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA1FD
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA1FD#FFFFFF#000000##000000
##AFA1FD1.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa1fd;
/* rgb */ color: rgb(175, 161, 253);
/* oklch */ color: oklch(75.7% 0.131 289.9);
Tailwind
colors: {
  custom: {
    50: '#c9bcfe',
    500: '#afa1fd',
    950: '#000000',
  },
}
SCSS
$custom: #afa1fd;
$custom-light: #c9bcfe;
$custom-dark: #000000;
JSON
{
  "hex": "#afa1fd",
  "rgb": {
    "r": 175,
    "g": 161,
    "b": 253
  },
  "hsl": {
    "h": 249.13,
    "s": 95.833,
    "l": 81.176
  },
  "oklch": {
    "l": 0.75682,
    "c": 0.13056,
    "h": 289.9
  },
  "luminance": 0.41696
}

Semantic roles & 50–950 ramp

primary
#AFA1FD
secondary
#F1F7D4
accent
#E600C3
background
#FCFBFF
surface
#F8F6FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA1FD

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

Preview Lab → · Contrast checker → · Palette generator →

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