#AFA6ED#AFA6ED

#AFA6ED is a light, moderate blue. Relative luminance 0.425; OKLCH L 75.9% C 0.101 H 289.6°. Best body text is #000000 at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#AFA6ED
RGBrgb(175, 166, 237)
HSLhsl(248, 66%, 79%)
HSVhsv(248, 30%, 93%)
CMYKcmyk(26.2%, 30%, 0%, 7.1%)
CIE-LABlab(71.21, 18.33, -34.40)
CIE-LCHlch(71.21, 38.98, 298.06°)
OKLaboklab(75.89% 0.0339 -0.0952)
OKLCHoklch(75.89% 0.101 289.6)
XYZxyz(46.5977, 42.5000, 85.8526)
Luminance0.4250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6ED #E4EDA6
analogous
#A6C1ED #AFA6ED #D3A6ED
triadic
#AFA6ED #EDAFA6 #A6EDAF
tetradic
#AFA6ED #EDA6C1 #E4EDA6 #A6EDD3
square
#AFA6ED #EDA6C1 #E4EDA6 #A6EDD3
split-complementary
#AFA6ED #EDD3A6 #C1EDA6
monochromatic
#5340D8 #8173E3 #AFA6ED #DDD9F7 #E8E6FA

Accessibility & contrast

On white

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

On black

9.50
#AFA6ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6ED
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6ED#FFFFFF#000000##000000
##AFA6ED1.002.219.509.50
#FFFFFF2.211.0021.0021.00
#0000009.5021.001.001.00
##0000009.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#93B0F0
Deuteranopia (green-blind)
#93ADEB
Tritanopia (blue-blind)
#A1B2BF
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa6ed;
/* rgb */ color: rgb(175, 166, 237);
/* oklch */ color: oklch(75.9% 0.101 289.6);
Tailwind
colors: {
  custom: {
    50: '#c8c0f3',
    500: '#afa6ed',
    950: '#000000',
  },
}
SCSS
$custom: #afa6ed;
$custom-light: #c8c0f3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6ed",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 237
  },
  "hsl": {
    "h": 247.606,
    "s": 66.355,
    "l": 79.02
  },
  "oklch": {
    "l": 0.75887,
    "c": 0.10109,
    "h": 289.6
  },
  "luminance": 0.42501
}

Semantic roles & 50–950 ramp

primary
#AFA6ED
secondary
#EEF1DA
accent
#CE17B7
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA6ED

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

Preview Lab → · Contrast checker → · Palette generator →

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