#AFA6DF#AFA6DF

#AFA6DF is a light, moderate blue. Relative luminance 0.417; OKLCH L 75.3% C 0.082 H 291.6°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#AFA6DF
RGBrgb(175, 166, 223)
HSLhsl(249, 47%, 76%)
HSVhsv(249, 26%, 87%)
CMYKcmyk(21.5%, 25.6%, 0%, 12.5%)
CIE-LABlab(70.67, 15.04, -27.58)
CIE-LCHlch(70.67, 31.42, 298.60°)
OKLaboklab(75.29% 0.03 -0.0758)
OKLCHoklch(75.29% 0.082 291.6)
XYZxyz(44.6316, 41.7136, 75.4979)
Luminance0.4171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA6DF #D6DFA6
analogous
#A6BADF #AFA6DF #CCA6DF
triadic
#AFA6DF #DFAFA6 #A6DFAF
tetradic
#AFA6DF #DFA6BA #D6DFA6 #A6DFCC
square
#AFA6DF #DFA6BA #D6DFA6 #A6DFCC
split-complementary
#AFA6DF #DFCCA6 #BADFA6
monochromatic
#5E4CBF #8779CF #AFA6DF #D7D3EF #EBE8F7

Accessibility & contrast

On white

2.25
#AFA6DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#AFA6DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA6DF
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA6DF#FFFFFF#000000##000000
##AFA6DF1.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#98AEE1
Deuteranopia (green-blind)
#99ACDD
Tritanopia (blue-blind)
#A5AFBA
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa6df;
/* rgb */ color: rgb(175, 166, 223);
/* oklch */ color: oklch(75.3% 0.082 291.6);
Tailwind
colors: {
  custom: {
    50: '#c7c0e9',
    500: '#afa6df',
    950: '#000000',
  },
}
SCSS
$custom: #afa6df;
$custom-light: #c7c0e9;
$custom-dark: #000000;
JSON
{
  "hex": "#afa6df",
  "rgb": {
    "r": 175,
    "g": 166,
    "b": 223
  },
  "hsl": {
    "h": 249.474,
    "s": 47.107,
    "l": 76.275
  },
  "oklch": {
    "l": 0.7529,
    "c": 0.08153,
    "h": 291.6
  },
  "luminance": 0.41714
}

Semantic roles & 50–950 ramp

primary
#AFA6DF
secondary
#EBEEDD
accent
#BA2BA4
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA6DF

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

Preview Lab → · Contrast checker → · Palette generator →

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