#AFA6EA#AFA6EA

#AFA6EA is a light, moderate blue. Relative luminance 0.423; OKLCH L 75.8% C 0.097 H 289.9°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#AFA6EA
RGBrgb(175, 166, 234)
HSLhsl(248, 62%, 78%)
HSVhsv(248, 29%, 92%)
CMYKcmyk(25.2%, 29.1%, 0%, 8.2%)
CIE-LABlab(71.10, 17.62, -32.95)
CIE-LCHlch(71.10, 37.36, 298.13°)
OKLaboklab(75.76% 0.0331 -0.0911)
OKLCHoklch(75.76% 0.097 289.9)
XYZxyz(46.1631, 42.3262, 83.5636)
Luminance0.4233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6EA #E1EAA6
analogous
#A6BFEA #AFA6EA #D1A6EA
triadic
#AFA6EA #EAAFA6 #A6EAAF
tetradic
#AFA6EA #EAA6BF #E1EAA6 #A6EAD1
square
#AFA6EA #EAA6BF #E1EAA6 #A6EAD1
split-complementary
#AFA6EA #EAD1A6 #BFEAA6
monochromatic
#5643D3 #8274DE #AFA6EA #DCD8F6 #E9E6F9

Accessibility & contrast

On white

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

On black

9.47
#AFA6EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6EA
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6EA#FFFFFF#000000##000000
##AFA6EA1.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#94AFED
Deuteranopia (green-blind)
#94ADE8
Tritanopia (blue-blind)
#A2B2BE
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa6ea;
/* rgb */ color: rgb(175, 166, 234);
/* oklch */ color: oklch(75.8% 0.097 289.9);
Tailwind
colors: {
  custom: {
    50: '#c8c0f1',
    500: '#afa6ea',
    950: '#000000',
  },
}
SCSS
$custom: #afa6ea;
$custom-light: #c8c0f1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6ea",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 234
  },
  "hsl": {
    "h": 247.941,
    "s": 61.818,
    "l": 78.431
  },
  "oklch": {
    "l": 0.75756,
    "c": 0.09691,
    "h": 289.9
  },
  "luminance": 0.42327
}

Semantic roles & 50–950 ramp

primary
#AFA6EA
secondary
#EEF1DA
accent
#CA1CB3
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA6EA

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

Preview Lab → · Contrast checker → · Palette generator →

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