#AFA6FD#AFA6FD

#AFA6FD is a light, vivid blue. Relative luminance 0.435; OKLCH L 76.6% C 0.123 H 287.9°. Best body text is #000000 at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#AFA6FD
RGBrgb(175, 166, 253)
HSLhsl(246, 96%, 82%)
HSVhsv(246, 34%, 99%)
CMYKcmyk(30.8%, 34.4%, 0%, 0.8%)
CIE-LABlab(71.88, 22.25, -42.06)
CIE-LCHlch(71.88, 47.58, 297.88°)
OKLaboklab(76.61% 0.0378 -0.1173)
OKLCHoklch(76.61% 0.123 287.9)
XYZxyz(49.0404, 43.4771, 98.7176)
Luminance0.4348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6FD #F4FDA6
analogous
#A6C9FD #AFA6FD #DBA6FD
triadic
#AFA6FD #FDAFA6 #A6FDAF
tetradic
#AFA6FD #FDA6C9 #F4FDA6 #A6FDDB
square
#AFA6FD #FDA6C9 #F4FDA6 #A6FDDB
split-complementary
#AFA6FD #FDDBA6 #C9FDA6
monochromatic
#432EFA #796AFC #AFA6FD #E4E1FE #E4E1FE

Accessibility & contrast

On white

2.17
#AFA6FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.70
#AFA6FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6FD
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6FD#FFFFFF#000000##000000
##AFA6FD1.002.179.709.70
#FFFFFF2.171.0021.0021.00
#0000009.7021.001.001.00
##0000009.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DB2FF
Deuteranopia (green-blind)
#8CAEFB
Tritanopia (blue-blind)
#9CB6C6
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa6fd;
/* rgb */ color: rgb(175, 166, 253);
/* oklch */ color: oklch(76.6% 0.123 287.9);
Tailwind
colors: {
  custom: {
    50: '#c9c0fe',
    500: '#afa6fd',
    950: '#000000',
  },
}
SCSS
$custom: #afa6fd;
$custom-light: #c9c0fe;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6fd",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 253
  },
  "hsl": {
    "h": 246.207,
    "s": 95.604,
    "l": 82.157
  },
  "oklch": {
    "l": 0.76615,
    "c": 0.12321,
    "h": 287.9
  },
  "luminance": 0.43478
}

Semantic roles & 50–950 ramp

primary
#AFA6FD
secondary
#F3F7D4
accent
#E600CE
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA6FD

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

Preview Lab → · Contrast checker → · Palette generator →

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