#AFA6EF#AFA6EF

#AFA6EF is a light, moderate blue. Relative luminance 0.426; OKLCH L 76.0% C 0.104 H 289.3°. Best body text is #000000 at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#AFA6EF
RGBrgb(175, 166, 239)
HSLhsl(247, 70%, 79%)
HSVhsv(247, 31%, 94%)
CMYKcmyk(26.8%, 30.5%, 0%, 6.3%)
CIE-LABlab(71.29, 18.81, -35.36)
CIE-LCHlch(71.29, 40.06, 298.01°)
OKLaboklab(75.98% 0.0344 -0.098)
OKLCHoklch(75.98% 0.104 289.3)
XYZxyz(46.8915, 42.6175, 87.4001)
Luminance0.4262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6EF #E6EFA6
analogous
#A6C2EF #AFA6EF #D4A6EF
triadic
#AFA6EF #EFAFA6 #A6EFAF
tetradic
#AFA6EF #EFA6C2 #E6EFA6 #A6EFD4
square
#AFA6EF #EFA6C2 #E6EFA6 #A6EFD4
split-complementary
#AFA6EF #EFD4A6 #C2EFA6
monochromatic
#523EDC #8072E6 #AFA6EF #DEDAF8 #E8E5FA

Accessibility & contrast

On white

2.21
#AFA6EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.52
#AFA6EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6EF
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6EF#FFFFFF#000000##000000
##AFA6EF1.002.219.529.52
#FFFFFF2.211.0021.0021.00
#0000009.5221.001.001.00
##0000009.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#93B0F2
Deuteranopia (green-blind)
#92ADED
Tritanopia (blue-blind)
#A1B3C0
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #afa6ef;
/* rgb */ color: rgb(175, 166, 239);
/* oklch */ color: oklch(76.0% 0.104 289.3);
Tailwind
colors: {
  custom: {
    50: '#c8c0f4',
    500: '#afa6ef',
    950: '#000000',
  },
}
SCSS
$custom: #afa6ef;
$custom-light: #c8c0f4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6ef",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 239
  },
  "hsl": {
    "h": 247.397,
    "s": 69.524,
    "l": 79.412
  },
  "oklch": {
    "l": 0.75975,
    "c": 0.10387,
    "h": 289.3
  },
  "luminance": 0.42618
}

Semantic roles & 50–950 ramp

primary
#AFA6EF
secondary
#EFF2D9
accent
#D214BA
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA6EF

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

Preview Lab → · Contrast checker → · Palette generator →

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