#AFA9EC#AFA9EC

#AFA9EC is a light, moderate blue. Relative luminance 0.435; OKLCH L 76.4% C 0.095 H 288.0°. Best body text is #000000 at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#AFA9EC
RGBrgb(175, 169, 236)
HSLhsl(245, 64%, 79%)
HSVhsv(245, 28%, 93%)
CMYKcmyk(25.8%, 28.4%, 0%, 7.5%)
CIE-LABlab(71.92, 16.42, -32.76)
CIE-LCHlch(71.92, 36.64, 296.62°)
OKLaboklab(76.42% 0.0295 -0.0906)
OKLCHoklch(76.42% 0.095 288)
XYZxyz(47.0037, 43.5452, 85.2692)
Luminance0.4355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA9EC #E6ECA9
analogous
#A9C5EC #AFA9EC #D1A9EC
triadic
#AFA9EC #ECAFA9 #A9ECAF
tetradic
#AFA9EC #ECA9C5 #E6ECA9 #A9ECD1
square
#AFA9EC #ECA9C5 #E6ECA9 #A9ECD1
split-complementary
#AFA9EC #ECD1A9 #C5ECA9
monochromatic
#5245D6 #8077E1 #AFA9EC #DEDBF7 #E8E6F9

Accessibility & contrast

On white

2.16
#AFA9EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.71
#AFA9EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA9EC
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA9EC#FFFFFF#000000##000000
##AFA9EC1.002.169.719.71
#FFFFFF2.161.0021.0021.00
#0000009.7121.001.001.00
##0000009.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#97B2EF
Deuteranopia (green-blind)
#97AFEA
Tritanopia (blue-blind)
#A1B5C1
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #afa9ec;
/* rgb */ color: rgb(175, 169, 236);
/* oklch */ color: oklch(76.4% 0.095 288.0);
Tailwind
colors: {
  custom: {
    50: '#c8c2f2',
    500: '#afa9ec',
    950: '#000000',
  },
}
SCSS
$custom: #afa9ec;
$custom-light: #c8c2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa9ec",
  "rgb": {
    "r": 175,
    "g": 169,
    "b": 236
  },
  "hsl": {
    "h": 245.373,
    "s": 63.81,
    "l": 79.412
  },
  "oklch": {
    "l": 0.7642,
    "c": 0.09523,
    "h": 288
  },
  "luminance": 0.43546
}

Semantic roles & 50–950 ramp

primary
#AFA9EC
secondary
#EFF1DA
accent
#CC1ABC
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA9EC

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

Preview Lab → · Contrast checker → · Palette generator →

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