#AFA6EC#AFA6EC

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

Color values

HEX#AFA6EC
RGBrgb(175, 166, 236)
HSLhsl(248, 65%, 79%)
HSVhsv(248, 30%, 93%)
CMYKcmyk(25.8%, 29.7%, 0%, 7.5%)
CIE-LABlab(71.17, 18.09, -33.92)
CIE-LCHlch(71.17, 38.44, 298.08°)
OKLaboklab(75.84% 0.0336 -0.0939)
OKLCHoklch(75.84% 0.1 289.7)
XYZxyz(46.4520, 42.4417, 85.0853)
Luminance0.4244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6EC #E3ECA6
analogous
#A6C0EC #AFA6EC #D2A6EC
triadic
#AFA6EC #ECAFA6 #A6ECAF
tetradic
#AFA6EC #ECA6C0 #E3ECA6 #A6ECD2
square
#AFA6EC #ECA6C0 #E3ECA6 #A6ECD2
split-complementary
#AFA6EC #ECD2A6 #C0ECA6
monochromatic
#5441D6 #8274E1 #AFA6EC #DCD8F7 #E8E6FA

Accessibility & contrast

On white

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

On black

9.49
#AFA6EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6EC
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6EC#FFFFFF#000000##000000
##AFA6EC1.002.219.499.49
#FFFFFF2.211.0021.0021.00
#0000009.4921.001.001.00
##0000009.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa6ec;
/* rgb */ color: rgb(175, 166, 236);
/* oklch */ color: oklch(75.8% 0.100 289.7);
Tailwind
colors: {
  custom: {
    50: '#c8c0f2',
    500: '#afa6ec',
    950: '#000000',
  },
}
SCSS
$custom: #afa6ec;
$custom-light: #c8c0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6ec",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 236
  },
  "hsl": {
    "h": 247.714,
    "s": 64.815,
    "l": 78.824
  },
  "oklch": {
    "l": 0.75843,
    "c": 0.09969,
    "h": 289.7
  },
  "luminance": 0.42443
}

Semantic roles & 50–950 ramp

primary
#AFA6EC
secondary
#EEF1DA
accent
#CD19B6
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA6EC

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

Preview Lab → · Contrast checker → · Palette generator →

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