#AFA6DD#AFA6DD

#AFA6DD is a light, moderate blue. Relative luminance 0.416; OKLCH L 75.2% C 0.079 H 291.9°. Best body text is #000000 at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#AFA6DD
RGBrgb(175, 166, 221)
HSLhsl(250, 45%, 76%)
HSVhsv(250, 25%, 87%)
CMYKcmyk(20.8%, 24.9%, 0%, 13.3%)
CIE-LABlab(70.60, 14.58, -26.60)
CIE-LCHlch(70.60, 30.34, 298.73°)
OKLaboklab(75.21% 0.0294 -0.073)
OKLCHoklch(75.21% 0.079 291.9)
XYZxyz(44.3635, 41.6063, 74.0862)
Luminance0.4161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6DD #D4DDA6
analogous
#A6B8DD #AFA6DD #CAA6DD
triadic
#AFA6DD #DDAFA6 #A6DDAF
tetradic
#AFA6DD #DDA6B8 #D4DDA6 #A6DDCA
square
#AFA6DD #DDA6B8 #D4DDA6 #A6DDCA
split-complementary
#AFA6DD #DDCAA6 #B8DDA6
monochromatic
#5F4DBB #877ACC #AFA6DD #D7D2EE #EBE9F7

Accessibility & contrast

On white

2.25
#AFA6DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.32
#AFA6DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6DD
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6DD#FFFFFF#000000##000000
##AFA6DD1.002.259.329.32
#FFFFFF2.251.0021.0021.00
#0000009.3221.001.001.00
##0000009.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#99AEDF
Deuteranopia (green-blind)
#99ACDB
Tritanopia (blue-blind)
#A6AFB9
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa6dd;
/* rgb */ color: rgb(175, 166, 221);
/* oklch */ color: oklch(75.2% 0.079 291.9);
Tailwind
colors: {
  custom: {
    50: '#c7c0e7',
    500: '#afa6dd',
    950: '#000000',
  },
}
SCSS
$custom: #afa6dd;
$custom-light: #c7c0e7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6dd",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 221
  },
  "hsl": {
    "h": 249.818,
    "s": 44.715,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75208,
    "c": 0.07873,
    "h": 291.9
  },
  "luminance": 0.41607
}

Semantic roles & 50–950 ramp

primary
#AFA6DD
secondary
#EBEDDE
accent
#B82EA1
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA6DD

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

Preview Lab → · Contrast checker → · Palette generator →

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