#AFA6EB#AFA6EB

#AFA6EB is a light, moderate blue. Relative luminance 0.424; OKLCH L 75.8% C 0.098 H 289.8°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#AFA6EB
RGBrgb(175, 166, 235)
HSLhsl(248, 63%, 79%)
HSVhsv(248, 29%, 92%)
CMYKcmyk(25.5%, 29.4%, 0%, 7.8%)
CIE-LABlab(71.13, 17.85, -33.43)
CIE-LCHlch(71.13, 37.90, 298.10°)
OKLaboklab(75.8% 0.0333 -0.0925)
OKLCHoklch(75.8% 0.098 289.8)
XYZxyz(46.3071, 42.3838, 84.3223)
Luminance0.4239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6EB #E2EBA6
analogous
#A6BFEB #AFA6EB #D1A6EB
triadic
#AFA6EB #EBAFA6 #A6EBAF
tetradic
#AFA6EB #EBA6BF #E2EBA6 #A6EBD1
square
#AFA6EB #EBA6BF #E2EBA6 #A6EBD1
split-complementary
#AFA6EB #EBD1A6 #BFEBA6
monochromatic
#5542D5 #8274E0 #AFA6EB #DCD8F6 #E9E6F9

Accessibility & contrast

On white

2.22
#AFA6EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#AFA6EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6EB
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6EB#FFFFFF#000000##000000
##AFA6EB1.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#94AFEE
Deuteranopia (green-blind)
#94ADE9
Tritanopia (blue-blind)
#A2B2BF
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa6eb;
/* rgb */ color: rgb(175, 166, 235);
/* oklch */ color: oklch(75.8% 0.098 289.8);
Tailwind
colors: {
  custom: {
    50: '#c8c0f1',
    500: '#afa6eb',
    950: '#000000',
  },
}
SCSS
$custom: #afa6eb;
$custom-light: #c8c0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6eb",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 235
  },
  "hsl": {
    "h": 247.826,
    "s": 63.303,
    "l": 78.627
  },
  "oklch": {
    "l": 0.75799,
    "c": 0.0983,
    "h": 289.8
  },
  "luminance": 0.42385
}

Semantic roles & 50–950 ramp

primary
#AFA6EB
secondary
#EEF1DA
accent
#CB1AB4
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA6EB

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

Preview Lab → · Contrast checker → · Palette generator →

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