#AFA5EC#AFA5EC

#AFA5EC is a light, moderate blue. Relative luminance 0.421; OKLCH L 75.7% C 0.101 H 290.2°. Best body text is #000000 at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#AFA5EC
RGBrgb(175, 165, 236)
HSLhsl(248, 65%, 79%)
HSVhsv(248, 30%, 93%)
CMYKcmyk(25.8%, 30.1%, 0%, 7.5%)
CIE-LABlab(70.93, 18.65, -34.30)
CIE-LCHlch(70.93, 39.04, 298.54°)
OKLaboklab(75.65% 0.035 -0.095)
OKLCHoklch(75.65% 0.101 290.2)
XYZxyz(46.2709, 42.0796, 85.0250)
Luminance0.4208 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5EC #E2ECA5
analogous
#A5BEEC #AFA5EC #D2A5EC
triadic
#AFA5EC #ECAFA5 #A5ECAF
tetradic
#AFA5EC #ECA5BE #E2ECA5 #A5ECD2
square
#AFA5EC #ECA5BE #E2ECA5 #A5ECD2
split-complementary
#AFA5EC #ECD2A5 #BEECA5
monochromatic
#5540D7 #8272E1 #AFA5EC #DCD8F7 #E9E6FA

Accessibility & contrast

On white

2.23
#AFA5EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.42
#AFA5EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5EC
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5EC#FFFFFF#000000##000000
##AFA5EC1.002.239.429.42
#FFFFFF2.231.0021.0021.00
#0000009.4221.001.001.00
##0000009.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#92AFEF
Deuteranopia (green-blind)
#93ACEA
Tritanopia (blue-blind)
#A2B1BE
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa5ec;
/* rgb */ color: rgb(175, 165, 236);
/* oklch */ color: oklch(75.7% 0.101 290.2);
Tailwind
colors: {
  custom: {
    50: '#c8bff2',
    500: '#afa5ec',
    950: '#000000',
  },
}
SCSS
$custom: #afa5ec;
$custom-light: #c8bff2;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5ec",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 236
  },
  "hsl": {
    "h": 248.451,
    "s": 65.138,
    "l": 78.627
  },
  "oklch": {
    "l": 0.75651,
    "c": 0.10119,
    "h": 290.2
  },
  "luminance": 0.4208
}

Semantic roles & 50–950 ramp

primary
#AFA5EC
secondary
#EEF1DA
accent
#CD19B4
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA5EC

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

Preview Lab → · Contrast checker → · Palette generator →

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