#AFA5E2#AFA5E2

#AFA5E2 is a light, moderate blue. Relative luminance 0.415; OKLCH L 75.2% C 0.087 H 291.7°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#AFA5E2
RGBrgb(175, 165, 226)
HSLhsl(250, 51%, 77%)
HSVhsv(250, 27%, 89%)
CMYKcmyk(22.6%, 27%, 0%, 11.4%)
CIE-LABlab(70.53, 16.29, -29.44)
CIE-LCHlch(70.53, 33.65, 298.96°)
OKLaboklab(75.22% 0.0322 -0.0811)
OKLCHoklch(75.22% 0.087 291.7)
XYZxyz(44.8586, 41.5146, 77.5865)
Luminance0.4152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5E2 #D8E2A5
analogous
#A5BAE2 #AFA5E2 #CEA5E2
triadic
#AFA5E2 #E2AFA5 #A5E2AF
tetradic
#AFA5E2 #E2A5BA #D8E2A5 #A5E2CE
square
#AFA5E2 #E2A5BA #D8E2A5 #A5E2CE
split-complementary
#AFA5E2 #E2CEA5 #BAE2A5
monochromatic
#5D48C4 #8677D3 #AFA5E2 #D8D3F1 #EAE8F8

Accessibility & contrast

On white

2.26
#AFA5E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#AFA5E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5E2
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5E2#FFFFFF#000000##000000
##AFA5E21.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#96ADE5
Deuteranopia (green-blind)
#97ABE0
Tritanopia (blue-blind)
#A4AFBA
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa5e2;
/* rgb */ color: rgb(175, 165, 226);
/* oklch */ color: oklch(75.2% 0.087 291.7);
Tailwind
colors: {
  custom: {
    50: '#c7bfeb',
    500: '#afa5e2',
    950: '#000000',
  },
}
SCSS
$custom: #afa5e2;
$custom-light: #c7bfeb;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5e2",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 226
  },
  "hsl": {
    "h": 249.836,
    "s": 51.261,
    "l": 76.667
  },
  "oklch": {
    "l": 0.75221,
    "c": 0.08726,
    "h": 291.7
  },
  "luminance": 0.41515
}

Semantic roles & 50–950 ramp

primary
#AFA5E2
secondary
#ECEFDC
accent
#BF27A6
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA5E2

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

Preview Lab → · Contrast checker → · Palette generator →

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