#AFA8EC#AFA8EC

#AFA8EC is a light, moderate blue. Relative luminance 0.432; OKLCH L 76.2% C 0.097 H 288.6°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#AFA8EC
RGBrgb(175, 168, 236)
HSLhsl(246, 64%, 79%)
HSVhsv(246, 29%, 93%)
CMYKcmyk(25.8%, 28.8%, 0%, 7.5%)
CIE-LABlab(71.67, 16.98, -33.14)
CIE-LCHlch(71.67, 37.24, 297.12°)
OKLaboklab(76.23% 0.0308 -0.0917)
OKLCHoklch(76.23% 0.097 288.6)
XYZxyz(46.8184, 43.1745, 85.2075)
Luminance0.4318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA8EC #E5ECA8
analogous
#A8C3EC #AFA8EC #D1A8EC
triadic
#AFA8EC #ECAFA8 #A8ECAF
tetradic
#AFA8EC #ECA8C3 #E5ECA8 #A8ECD1
square
#AFA8EC #ECA8C3 #E5ECA8 #A8ECD1
split-complementary
#AFA8EC #ECD1A8 #C3ECA8
monochromatic
#5344D6 #8176E1 #AFA8EC #DDDAF7 #E8E6FA

Accessibility & contrast

On white

2.18
#AFA8EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#AFA8EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA8EC
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA8EC#FFFFFF#000000##000000
##AFA8EC1.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#96B1EF
Deuteranopia (green-blind)
#96AEEA
Tritanopia (blue-blind)
#A1B4C0
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa8ec;
/* rgb */ color: rgb(175, 168, 236);
/* oklch */ color: oklch(76.2% 0.097 288.6);
Tailwind
colors: {
  custom: {
    50: '#c8c1f2',
    500: '#afa8ec',
    950: '#000000',
  },
}
SCSS
$custom: #afa8ec;
$custom-light: #c8c1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa8ec",
  "rgb": {
    "r": 175,
    "g": 168,
    "b": 236
  },
  "hsl": {
    "h": 246.176,
    "s": 64.151,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76227,
    "c": 0.09671,
    "h": 288.6
  },
  "luminance": 0.43175
}

Semantic roles & 50–950 ramp

primary
#AFA8EC
secondary
#EFF1DA
accent
#CC1ABA
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA8EC

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

Preview Lab → · Contrast checker → · Palette generator →

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