#AFA5EB#AFA5EB

#AFA5EB is a light, moderate blue. Relative luminance 0.420; OKLCH L 75.6% C 0.100 H 290.3°. Best body text is #000000 at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#AFA5EB
RGBrgb(175, 165, 235)
HSLhsl(249, 64%, 78%)
HSVhsv(249, 30%, 92%)
CMYKcmyk(25.5%, 29.8%, 0%, 7.8%)
CIE-LABlab(70.89, 18.41, -33.82)
CIE-LCHlch(70.89, 38.51, 298.57°)
OKLaboklab(75.61% 0.0347 -0.0936)
OKLCHoklch(75.61% 0.1 290.3)
XYZxyz(46.1261, 42.0216, 84.2620)
Luminance0.4202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5EB #E1EBA5
analogous
#A5BEEB #AFA5EB #D2A5EB
triadic
#AFA5EB #EBAFA5 #A5EBAF
tetradic
#AFA5EB #EBA5BE #E1EBA5 #A5EBD2
square
#AFA5EB #EBA5BE #E1EBA5 #A5EBD2
split-complementary
#AFA5EB #EBD2A5 #BEEBA5
monochromatic
#5641D5 #8273E0 #AFA5EB #DCD7F6 #E9E6F9

Accessibility & contrast

On white

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

On black

9.40
#AFA5EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5EB
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5EB#FFFFFF#000000##000000
##AFA5EB1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#93AFEE
Deuteranopia (green-blind)
#93ACE9
Tritanopia (blue-blind)
#A2B1BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa5eb;
/* rgb */ color: rgb(175, 165, 235);
/* oklch */ color: oklch(75.6% 0.100 290.3);
Tailwind
colors: {
  custom: {
    50: '#c8bff1',
    500: '#afa5eb',
    950: '#000000',
  },
}
SCSS
$custom: #afa5eb;
$custom-light: #c8bff1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5eb",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 235
  },
  "hsl": {
    "h": 248.571,
    "s": 63.636,
    "l": 78.431
  },
  "oklch": {
    "l": 0.75607,
    "c": 0.09981,
    "h": 290.3
  },
  "luminance": 0.42022
}

Semantic roles & 50–950 ramp

primary
#AFA5EB
secondary
#EEF1DA
accent
#CB1AB2
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA5EB

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

Preview Lab → · Contrast checker → · Palette generator →

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