#AFA8DF#AFA8DF

#AFA8DF is a light, moderate blue. Relative luminance 0.424; OKLCH L 75.7% C 0.078 H 290.2°. Best body text is #000000 at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#AFA8DF
RGBrgb(175, 168, 223)
HSLhsl(248, 46%, 77%)
HSVhsv(248, 25%, 87%)
CMYKcmyk(21.5%, 24.7%, 0%, 12.5%)
CIE-LABlab(71.18, 13.93, -26.81)
CIE-LCHlch(71.18, 30.21, 297.45°)
OKLaboklab(75.68% 0.0271 -0.0736)
OKLCHoklch(75.68% 0.078 290.2)
XYZxyz(44.9980, 42.4463, 75.6200)
Luminance0.4245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8DF #D8DFA8
analogous
#A8BDDF #AFA8DF #CBA8DF
triadic
#AFA8DF #DFAFA8 #A8DFAF
tetradic
#AFA8DF #DFA8BD #D8DFA8 #A8DFCB
square
#AFA8DF #DFA8BD #D8DFA8 #A8DFCB
split-complementary
#AFA8DF #DFCBA8 #BDDFA8
monochromatic
#5D4FBE #867BCF #AFA8DF #D8D5EF #EAE9F7

Accessibility & contrast

On white

2.21
#AFA8DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.49
#AFA8DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8DF
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8DF#FFFFFF#000000##000000
##AFA8DF1.002.219.499.49
#FFFFFF2.211.0021.0021.00
#0000009.4921.001.001.00
##0000009.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#9BAFE1
Deuteranopia (green-blind)
#9BADDD
Tritanopia (blue-blind)
#A5B1BB
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa8df;
/* rgb */ color: rgb(175, 168, 223);
/* oklch */ color: oklch(75.7% 0.078 290.2);
Tailwind
colors: {
  custom: {
    50: '#c7c1e9',
    500: '#afa8df',
    950: '#000000',
  },
}
SCSS
$custom: #afa8df;
$custom-light: #c7c1e9;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8df",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 223
  },
  "hsl": {
    "h": 247.636,
    "s": 46.218,
    "l": 76.667
  },
  "oklch": {
    "l": 0.75681,
    "c": 0.07849,
    "h": 290.2
  },
  "luminance": 0.42447
}

Semantic roles & 50–950 ramp

primary
#AFA8DF
secondary
#ECEEDD
accent
#B92CA7
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA8DF

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

Preview Lab → · Contrast checker → · Palette generator →

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