#AFA6FB#AFA6FB

#AFA6FB is a light, vivid blue. Relative luminance 0.434; OKLCH L 76.5% C 0.120 H 288.1°. Best body text is #000000 at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#AFA6FB
RGBrgb(175, 166, 251)
HSLhsl(246, 91%, 82%)
HSVhsv(246, 34%, 98%)
CMYKcmyk(30.3%, 33.9%, 0%, 1.6%)
CIE-LABlab(71.79, 21.75, -41.11)
CIE-LCHlch(71.79, 46.51, 297.88°)
OKLaboklab(76.52% 0.0373 -0.1145)
OKLCHoklch(76.52% 0.12 288.1)
XYZxyz(48.7235, 43.3503, 97.0485)
Luminance0.4335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6FB #F2FBA6
analogous
#A6C8FB #AFA6FB #DAA6FB
triadic
#AFA6FB #FBAFA6 #A6FBAF
tetradic
#AFA6FB #FBA6C8 #F2FBA6 #A6FBDA
square
#AFA6FB #FBA6C8 #F2FBA6 #A6FBDA
split-complementary
#AFA6FB #FBDAA6 #C8FBA6
monochromatic
#4631F6 #7A6BF8 #AFA6FB #E4E1FE #E5E2FE

Accessibility & contrast

On white

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

On black

9.67
#AFA6FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6FB
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6FB#FFFFFF#000000##000000
##AFA6FB1.002.179.679.67
#FFFFFF2.171.0021.0021.00
#0000009.6721.001.001.00
##0000009.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EB2FE
Deuteranopia (green-blind)
#8DAEF9
Tritanopia (blue-blind)
#9DB5C5
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa6fb;
/* rgb */ color: rgb(175, 166, 251);
/* oklch */ color: oklch(76.5% 0.120 288.1);
Tailwind
colors: {
  custom: {
    50: '#c9c0fd',
    500: '#afa6fb',
    950: '#000000',
  },
}
SCSS
$custom: #afa6fb;
$custom-light: #c9c0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6fb",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 251
  },
  "hsl": {
    "h": 246.353,
    "s": 91.398,
    "l": 81.765
  },
  "oklch": {
    "l": 0.76521,
    "c": 0.12045,
    "h": 288.1
  },
  "luminance": 0.43351
}

Semantic roles & 50–950 ramp

primary
#AFA6FB
secondary
#F2F6D5
accent
#E600CD
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA6FB

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

Preview Lab → · Contrast checker → · Palette generator →

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