#AFA3EC#AFA3EC

#AFA3EC is a light, moderate blue. Relative luminance 0.414; OKLCH L 75.3% C 0.104 H 291.2°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#AFA3EC
RGBrgb(175, 163, 236)
HSLhsl(250, 66%, 78%)
HSVhsv(250, 31%, 93%)
CMYKcmyk(25.8%, 30.9%, 0%, 7.5%)
CIE-LABlab(70.43, 19.77, -35.07)
CIE-LCHlch(70.43, 40.26, 299.41°)
OKLaboklab(75.27% 0.0377 -0.0972)
OKLCHoklch(75.27% 0.104 291.2)
XYZxyz(45.9130, 41.3638, 84.9057)
Luminance0.4136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA3EC #E0ECA3
analogous
#A3BBEC #AFA3EC #D3A3EC
triadic
#AFA3EC #ECAFA3 #A3ECAF
tetradic
#AFA3EC #ECA3BB #E0ECA3 #A3ECD3
square
#AFA3EC #ECA3BB #E0ECA3 #A3ECD3
split-complementary
#AFA3EC #ECD3A3 #BBECA3
monochromatic
#573ED7 #8370E2 #AFA3EC #DBD6F6 #E9E6FA

Accessibility & contrast

On white

2.26
#AFA3EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.27
#AFA3EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA3EC
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA3EC#FFFFFF#000000##000000
##AFA3EC1.002.269.279.27
#FFFFFF2.261.0021.0021.00
#0000009.2721.001.001.00
##0000009.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90ADEF
Deuteranopia (green-blind)
#91ABEA
Tritanopia (blue-blind)
#A2AFBD
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa3ec;
/* rgb */ color: rgb(175, 163, 236);
/* oklch */ color: oklch(75.3% 0.104 291.2);
Tailwind
colors: {
  custom: {
    50: '#c8bef2',
    500: '#afa3ec',
    950: '#000000',
  },
}
SCSS
$custom: #afa3ec;
$custom-light: #c8bef2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa3ec",
  "rgb": {
    "r": 175,
    "g": 163,
    "b": 236
  },
  "hsl": {
    "h": 249.863,
    "s": 65.766,
    "l": 78.235
  },
  "oklch": {
    "l": 0.7527,
    "c": 0.10423,
    "h": 291.2
  },
  "luminance": 0.41364
}

Semantic roles & 50–950 ramp

primary
#AFA3EC
secondary
#EDF1DA
accent
#CE18B0
background
#FCFBFE
surface
#F8F6FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA3EC

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

Preview Lab → · Contrast checker → · Palette generator →

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