#AFA6FC#AFA6FC

#AFA6FC is a light, vivid blue. Relative luminance 0.434; OKLCH L 76.6% C 0.122 H 288.0°. Best body text is #000000 at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#AFA6FC
RGBrgb(175, 166, 252)
HSLhsl(246, 93%, 82%)
HSVhsv(246, 34%, 99%)
CMYKcmyk(30.6%, 34.1%, 0%, 1.2%)
CIE-LABlab(71.83, 22.00, -41.58)
CIE-LCHlch(71.83, 47.04, 297.88°)
OKLaboklab(76.57% 0.0376 -0.1159)
OKLCHoklch(76.57% 0.122 288)
XYZxyz(48.8815, 43.4135, 97.8808)
Luminance0.4341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6FC #F3FCA6
analogous
#A6C8FC #AFA6FC #DAA6FC
triadic
#AFA6FC #FCAFA6 #A6FCAF
tetradic
#AFA6FC #FCA6C8 #F3FCA6 #A6FCDA
square
#AFA6FC #FCA6C8 #F3FCA6 #A6FCDA
split-complementary
#AFA6FC #FCDAA6 #C8FCA6
monochromatic
#4530F8 #7A6BFA #AFA6FC #E4E1FE #E4E1FE

Accessibility & contrast

On white

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

On black

9.68
#AFA6FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6FC
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6FC#FFFFFF#000000##000000
##AFA6FC1.002.179.689.68
#FFFFFF2.171.0021.0021.00
#0000009.6821.001.001.00
##0000009.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa6fc;
/* rgb */ color: rgb(175, 166, 252);
/* oklch */ color: oklch(76.6% 0.122 288.0);
Tailwind
colors: {
  custom: {
    50: '#c9c0fd',
    500: '#afa6fc',
    950: '#000000',
  },
}
SCSS
$custom: #afa6fc;
$custom-light: #c9c0fd;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6fc",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 252
  },
  "hsl": {
    "h": 246.279,
    "s": 93.478,
    "l": 81.961
  },
  "oklch": {
    "l": 0.76568,
    "c": 0.12183,
    "h": 288
  },
  "luminance": 0.43415
}

Semantic roles & 50–950 ramp

primary
#AFA6FC
secondary
#F3F6D5
accent
#E600CD
background
#FCFBFF
surface
#F8F7FF
border
#D1D0D7
text
#131217
muted
#828185

Preview Lab

Preview with #AFA6FC

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

Preview Lab → · Contrast checker → · Palette generator →

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