#AFA5EF#AFA5EF

#AFA5EF is a light, moderate blue. Relative luminance 0.423; OKLCH L 75.8% C 0.105 H 289.8°. Best body text is #000000 at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#AFA5EF
RGBrgb(175, 165, 239)
HSLhsl(248, 70%, 79%)
HSVhsv(248, 31%, 94%)
CMYKcmyk(26.8%, 31%, 0%, 6.3%)
CIE-LABlab(71.05, 19.37, -35.75)
CIE-LCHlch(71.05, 40.66, 298.45°)
OKLaboklab(75.78% 0.0357 -0.0991)
OKLCHoklch(75.78% 0.105 289.8)
XYZxyz(46.7104, 42.2554, 87.3398)
Luminance0.4226 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5EF #E5EFA5
analogous
#A5C0EF #AFA5EF #D4A5EF
triadic
#AFA5EF #EFAFA5 #A5EFAF
tetradic
#AFA5EF #EFA5C0 #E5EFA5 #A5EFD4
square
#AFA5EF #EFA5C0 #E5EFA5 #A5EFD4
split-complementary
#AFA5EF #EFD4A5 #C0EFA5
monochromatic
#533DDD #8171E6 #AFA5EF #DDD9F8 #E8E5FA

Accessibility & contrast

On white

2.22
#AFA5EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.45
#AFA5EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5EF
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5EF#FFFFFF#000000##000000
##AFA5EF1.002.229.459.45
#FFFFFF2.221.0021.0021.00
#0000009.4521.001.001.00
##0000009.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#91AFF2
Deuteranopia (green-blind)
#91ACED
Tritanopia (blue-blind)
#A1B2C0
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #afa5ef;
/* rgb */ color: rgb(175, 165, 239);
/* oklch */ color: oklch(75.8% 0.105 289.8);
Tailwind
colors: {
  custom: {
    50: '#c8bff4',
    500: '#afa5ef',
    950: '#000000',
  },
}
SCSS
$custom: #afa5ef;
$custom-light: #c8bff4;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5ef",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 239
  },
  "hsl": {
    "h": 248.108,
    "s": 69.811,
    "l": 79.216
  },
  "oklch": {
    "l": 0.75784,
    "c": 0.10536,
    "h": 289.8
  },
  "luminance": 0.42256
}

Semantic roles & 50–950 ramp

primary
#AFA5EF
secondary
#EFF2D9
accent
#D214B8
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA5EF

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

Preview Lab → · Contrast checker → · Palette generator →

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