#AFA6FE#AFA6FE

#AFA6FE is a light, vivid blue. Relative luminance 0.435; OKLCH L 76.7% C 0.125 H 287.8°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#AFA6FE
RGBrgb(175, 166, 254)
HSLhsl(246, 98%, 82%)
HSVhsv(246, 35%, 100%)
CMYKcmyk(31.1%, 34.6%, 0%, 0.4%)
CIE-LABlab(71.92, 22.50, -42.53)
CIE-LCHlch(71.92, 48.11, 297.87°)
OKLaboklab(76.66% 0.038 -0.1186)
OKLCHoklch(76.66% 0.125 287.8)
XYZxyz(49.2001, 43.5410, 99.5588)
Luminance0.4354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6FE #F5FEA6
analogous
#A6C9FE #AFA6FE #DBA6FE
triadic
#AFA6FE #FEAFA6 #A6FEAF
tetradic
#AFA6FE #FEA6C9 #F5FEA6 #A6FEDB
square
#AFA6FE #FEA6C9 #F5FEA6 #A6FEDB
split-complementary
#AFA6FE #FEDBA6 #C9FEA6
monochromatic
#422DFD #7969FD #AFA6FE #E4E1FF #E4E1FF

Accessibility & contrast

On white

2.16
#AFA6FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#AFA6FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6FE
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6FE#FFFFFF#000000##000000
##AFA6FE1.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa6fe;
/* rgb */ color: rgb(175, 166, 254);
/* oklch */ color: oklch(76.7% 0.125 287.8);
Tailwind
colors: {
  custom: {
    50: '#c9c0ff',
    500: '#afa6fe',
    950: '#000000',
  },
}
SCSS
$custom: #afa6fe;
$custom-light: #c9c0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6fe",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 254
  },
  "hsl": {
    "h": 246.136,
    "s": 97.778,
    "l": 82.353
  },
  "oklch": {
    "l": 0.76662,
    "c": 0.12457,
    "h": 287.8
  },
  "luminance": 0.43542
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AFA6FE

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

Preview Lab → · Contrast checker → · Palette generator →

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