#AFA8DD#AFA8DD

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

Color values

HEX#AFA8DD
RGBrgb(175, 168, 221)
HSLhsl(248, 44%, 76%)
HSVhsv(248, 24%, 87%)
CMYKcmyk(20.8%, 24%, 0%, 13.3%)
CIE-LABlab(71.10, 13.47, -25.83)
CIE-LCHlch(71.10, 29.13, 297.54°)
OKLaboklab(75.6% 0.0265 -0.0709)
OKLCHoklch(75.6% 0.076 290.5)
XYZxyz(44.7299, 42.3391, 74.2083)
Luminance0.4234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8DD #D6DDA8
analogous
#A8BCDD #AFA8DD #CAA8DD
triadic
#AFA8DD #DDAFA8 #A8DDAF
tetradic
#AFA8DD #DDA8BC #D6DDA8 #A8DDCA
square
#AFA8DD #DDA8BC #D6DDA8 #A8DDCA
split-complementary
#AFA8DD #DDCAA8 #BCDDA8
monochromatic
#5E50BB #877CCC #AFA8DD #D7D4EE #EBE9F6

Accessibility & contrast

On white

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

On black

9.47
#AFA8DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8DD
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8DD#FFFFFF#000000##000000
##AFA8DD1.002.229.479.47
#FFFFFF2.221.0021.0021.00
#0000009.4721.001.001.00
##0000009.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#9BAFDF
Deuteranopia (green-blind)
#9BADDC
Tritanopia (blue-blind)
#A6B1BA
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa8dd;
/* rgb */ color: rgb(175, 168, 221);
/* oklch */ color: oklch(75.6% 0.076 290.5);
Tailwind
colors: {
  custom: {
    50: '#c7c1e7',
    500: '#afa8dd',
    950: '#000000',
  },
}
SCSS
$custom: #afa8dd;
$custom-light: #c7c1e7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8dd",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 221
  },
  "hsl": {
    "h": 247.925,
    "s": 43.802,
    "l": 76.275
  },
  "oklch": {
    "l": 0.756,
    "c": 0.07567,
    "h": 290.5
  },
  "luminance": 0.4234
}

Semantic roles & 50–950 ramp

primary
#AFA8DD
secondary
#EBEDDE
accent
#B72FA5
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA8DD

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

Preview Lab → · Contrast checker → · Palette generator →

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