#AFA4EC#AFA4EC

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

Color values

HEX#AFA4EC
RGBrgb(175, 164, 236)
HSLhsl(249, 65%, 78%)
HSVhsv(249, 31%, 93%)
CMYKcmyk(25.8%, 30.5%, 0%, 7.5%)
CIE-LABlab(70.68, 19.21, -34.69)
CIE-LCHlch(70.68, 39.65, 298.98°)
OKLaboklab(75.46% 0.0363 -0.0961)
OKLCHoklch(75.46% 0.103 290.7)
XYZxyz(46.0913, 41.7203, 84.9651)
Luminance0.4172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA4EC #E1ECA4
analogous
#A4BDEC #AFA4EC #D3A4EC
triadic
#AFA4EC #ECAFA4 #A4ECAF
tetradic
#AFA4EC #ECA4BD #E1ECA4 #A4ECD3
square
#AFA4EC #ECA4BD #E1ECA4 #A4ECD3
split-complementary
#AFA4EC #ECD3A4 #BDECA4
monochromatic
#563FD7 #8271E1 #AFA4EC #DCD7F7 #E9E6FA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AFA4EC#FFFFFF#000000##000000
##AFA4EC1.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)
#91AEEF
Deuteranopia (green-blind)
#92ABEA
Tritanopia (blue-blind)
#A2B0BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa4ec;
/* rgb */ color: rgb(175, 164, 236);
/* oklch */ color: oklch(75.5% 0.103 290.7);
Tailwind
colors: {
  custom: {
    50: '#c8bff2',
    500: '#afa4ec',
    950: '#000000',
  },
}
SCSS
$custom: #afa4ec;
$custom-light: #c8bff2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa4ec",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 236
  },
  "hsl": {
    "h": 249.167,
    "s": 65.455,
    "l": 78.431
  },
  "oklch": {
    "l": 0.7546,
    "c": 0.1027,
    "h": 290.7
  },
  "luminance": 0.41721
}

Semantic roles & 50–950 ramp

primary
#AFA4EC
secondary
#EEF1DA
accent
#CD18B2
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA4EC

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

Preview Lab → · Contrast checker → · Palette generator →

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