#AFA7DD#AFA7DD

#AFA7DD is a light, moderate blue. Relative luminance 0.420; OKLCH L 75.4% C 0.077 H 291.2°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#AFA7DD
RGBrgb(175, 167, 221)
HSLhsl(249, 44%, 76%)
HSVhsv(249, 24%, 87%)
CMYKcmyk(20.8%, 24.4%, 0%, 13.3%)
CIE-LABlab(70.85, 14.02, -26.21)
CIE-LCHlch(70.85, 29.73, 298.15°)
OKLaboklab(75.4% 0.0279 -0.072)
OKLCHoklch(75.4% 0.077 291.2)
XYZxyz(44.5460, 41.9713, 74.1470)
Luminance0.4197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA7DD #D5DDA7
analogous
#A7BADD #AFA7DD #CAA7DD
triadic
#AFA7DD #DDAFA7 #A7DDAF
tetradic
#AFA7DD #DDA7BA #D5DDA7 #A7DDCA
square
#AFA7DD #DDA7BA #D5DDA7 #A7DDCA
split-complementary
#AFA7DD #DDCAA7 #BADDA7
monochromatic
#5F4FBB #877BCC #AFA7DD #D7D3EE #EBE9F6

Accessibility & contrast

On white

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

On black

9.39
#AFA7DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA7DD
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA7DD#FFFFFF#000000##000000
##AFA7DD1.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9AAEDF
Deuteranopia (green-blind)
#9AACDC
Tritanopia (blue-blind)
#A6B0BA
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa7dd;
/* rgb */ color: rgb(175, 167, 221);
/* oklch */ color: oklch(75.4% 0.077 291.2);
Tailwind
colors: {
  custom: {
    50: '#c7c1e7',
    500: '#afa7dd',
    950: '#000000',
  },
}
SCSS
$custom: #afa7dd;
$custom-light: #c7c1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa7dd",
  "rgb": {
    "r": 175,
    "g": 167,
    "b": 221
  },
  "hsl": {
    "h": 248.889,
    "s": 44.262,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75404,
    "c": 0.07719,
    "h": 291.2
  },
  "luminance": 0.41972
}

Semantic roles & 50–950 ramp

primary
#AFA7DD
secondary
#EBEDDE
accent
#B72EA3
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA7DD

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

Preview Lab → · Contrast checker → · Palette generator →

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