#AFA6FF#AFA6FF

#AFA6FF is a light, vivid blue. Relative luminance 0.436; OKLCH L 76.7% C 0.126 H 287.7°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#AFA6FF
RGBrgb(175, 166, 255)
HSLhsl(246, 100%, 83%)
HSVhsv(246, 35%, 100%)
CMYKcmyk(31.4%, 34.9%, 0%, 0%)
CIE-LABlab(71.96, 22.75, -43.01)
CIE-LCHlch(71.96, 48.65, 297.87°)
OKLaboklab(76.71% 0.0382 -0.12)
OKLCHoklch(76.71% 0.126 287.7)
XYZxyz(49.3607, 43.6052, 100.4043)
Luminance0.4361 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6FF #F6FFA6
analogous
#A6CAFF #AFA6FF #DBA6FF
triadic
#AFA6FF #FFAFA6 #A6FFAF
tetradic
#AFA6FF #FFA6CA #F6FFA6 #A6FFDB
square
#AFA6FF #FFA6CA #F6FFA6 #A6FFDB
split-complementary
#AFA6FF #FFDBA6 #CAFFA6
monochromatic
#412CFF #7869FF #AFA6FF #E3E0FF #E3E0FF

Accessibility & contrast

On white

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

On black

9.72
#AFA6FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6FF
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6FF#FFFFFF#000000##000000
##AFA6FF1.002.169.729.72
#FFFFFF2.161.0021.0021.00
#0000009.7221.001.001.00
##0000009.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CB3FF
Deuteranopia (green-blind)
#8BAEFD
Tritanopia (blue-blind)
#9CB6C7
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa6ff;
/* rgb */ color: rgb(175, 166, 255);
/* oklch */ color: oklch(76.7% 0.126 287.7);
Tailwind
colors: {
  custom: {
    50: '#c9c0ff',
    500: '#afa6ff',
    950: '#000000',
  },
}
SCSS
$custom: #afa6ff;
$custom-light: #c9c0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6ff",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 255
  },
  "hsl": {
    "h": 246.067,
    "s": 100,
    "l": 82.549
  },
  "oklch": {
    "l": 0.76709,
    "c": 0.12595,
    "h": 287.7
  },
  "luminance": 0.43606
}

Semantic roles & 50–950 ramp

primary
#AFA6FF
secondary
#F4F7D4
accent
#E600CE
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131218
muted
#828186

Preview Lab

Preview with #AFA6FF

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

Preview Lab → · Contrast checker → · Palette generator →

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