#AFA7DC#AFA7DC

#AFA7DC is a light, moderate blue. Relative luminance 0.419; OKLCH L 75.4% C 0.076 H 291.4°. Best body text is #000000 at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#AFA7DC
RGBrgb(175, 167, 220)
HSLhsl(249, 43%, 76%)
HSVhsv(249, 24%, 86%)
CMYKcmyk(20.5%, 24.1%, 0%, 13.7%)
CIE-LABlab(70.81, 13.80, -25.72)
CIE-LCHlch(70.81, 29.19, 298.21°)
OKLaboklab(75.36% 0.0276 -0.0706)
OKLCHoklch(75.36% 0.076 291.4)
XYZxyz(44.4132, 41.9182, 73.4474)
Luminance0.4192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7DC #D4DCA7
analogous
#A7B9DC #AFA7DC #C9A7DC
triadic
#AFA7DC #DCAFA7 #A7DCAF
tetradic
#AFA7DC #DCA7B9 #D4DCA7 #A7DCC9
square
#AFA7DC #DCA7B9 #D4DCA7 #A7DCC9
split-complementary
#AFA7DC #DCC9A7 #B9DCA7
monochromatic
#5F4FB9 #877BCB #AFA7DC #D7D3ED #EBE9F6

Accessibility & contrast

On white

2.24
#AFA7DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.38
#AFA7DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7DC
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7DC#FFFFFF#000000##000000
##AFA7DC1.002.249.389.38
#FFFFFF2.241.0021.0021.00
#0000009.3821.001.001.00
##0000009.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AAEDE
Deuteranopia (green-blind)
#9BACDB
Tritanopia (blue-blind)
#A6B0B9
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa7dc;
/* rgb */ color: rgb(175, 167, 220);
/* oklch */ color: oklch(75.4% 0.076 291.4);
Tailwind
colors: {
  custom: {
    50: '#c7c1e7',
    500: '#afa7dc',
    950: '#000000',
  },
}
SCSS
$custom: #afa7dc;
$custom-light: #c7c1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7dc",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 220
  },
  "hsl": {
    "h": 249.057,
    "s": 43.089,
    "l": 75.882
  },
  "oklch": {
    "l": 0.75363,
    "c": 0.07579,
    "h": 291.4
  },
  "luminance": 0.41919
}

Semantic roles & 50–950 ramp

primary
#AFA7DC
secondary
#EBEDDE
accent
#B62FA2
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA7DC

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

Preview Lab → · Contrast checker → · Palette generator →

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