#AFA8DC#AFA8DC

#AFA8DC is a light, moderate blue. Relative luminance 0.423; OKLCH L 75.6% C 0.074 H 290.7°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#AFA8DC
RGBrgb(175, 168, 220)
HSLhsl(248, 43%, 76%)
HSVhsv(248, 24%, 86%)
CMYKcmyk(20.5%, 23.6%, 0%, 13.7%)
CIE-LABlab(71.07, 13.24, -25.33)
CIE-LCHlch(71.07, 28.59, 297.59°)
OKLaboklab(75.56% 0.0262 -0.0695)
OKLCHoklch(75.56% 0.074 290.7)
XYZxyz(44.5971, 42.2860, 73.5087)
Luminance0.4229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8DC #D5DCA8
analogous
#A8BBDC #AFA8DC #C9A8DC
triadic
#AFA8DC #DCAFA8 #A8DCAF
tetradic
#AFA8DC #DCA8BB #D5DCA8 #A8DCC9
square
#AFA8DC #DCA8BB #D5DCA8 #A8DCC9
split-complementary
#AFA8DC #DCC9A8 #BBDCA8
monochromatic
#5F51B9 #877CCA #AFA8DC #D7D4EE #EBE9F6

Accessibility & contrast

On white

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

On black

9.46
#AFA8DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8DC
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8DC#FFFFFF#000000##000000
##AFA8DC1.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9CAFDE
Deuteranopia (green-blind)
#9CADDB
Tritanopia (blue-blind)
#A6B0BA
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa8dc;
/* rgb */ color: rgb(175, 168, 220);
/* oklch */ color: oklch(75.6% 0.074 290.7);
Tailwind
colors: {
  custom: {
    50: '#c7c1e7',
    500: '#afa8dc',
    950: '#000000',
  },
}
SCSS
$custom: #afa8dc;
$custom-light: #c7c1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8dc",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 220
  },
  "hsl": {
    "h": 248.077,
    "s": 42.623,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75559,
    "c": 0.07426,
    "h": 290.7
  },
  "luminance": 0.42287
}

Semantic roles & 50–950 ramp

primary
#AFA8DC
secondary
#EBEDDE
accent
#B630A4
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA8DC

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

Preview Lab → · Contrast checker → · Palette generator →

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