#AFA4E7#AFA4E7

#AFA4E7 is a light, moderate blue. Relative luminance 0.414; OKLCH L 75.2% C 0.096 H 291.5°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).

Color values

HEX#AFA4E7
RGBrgb(175, 164, 231)
HSLhsl(250, 58%, 77%)
HSVhsv(250, 29%, 91%)
CMYKcmyk(24.2%, 29%, 0%, 9.4%)
CIE-LABlab(70.48, 18.02, -32.26)
CIE-LCHlch(70.48, 36.96, 299.19°)
OKLaboklab(75.24% 0.035 -0.0891)
OKLCHoklch(75.24% 0.096 291.5)
XYZxyz(45.3750, 41.4338, 81.1927)
Luminance0.4143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA4E7 #DCE7A4
analogous
#A4BAE7 #AFA4E7 #D1A4E7
triadic
#AFA4E7 #E7AFA4 #A4E7AF
tetradic
#AFA4E7 #E7A4BA #DCE7A4 #A4E7D1
square
#AFA4E7 #E7A4BA #DCE7A4 #A4E7D1
split-complementary
#AFA4E7 #E7D1A4 #BAE7A4
monochromatic
#5A43CD #8474DA #AFA4E7 #DAD4F4 #EAE7F9

Accessibility & contrast

On white

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

On black

9.29
#AFA4E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA4E7
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA4E7#FFFFFF#000000##000000
##AFA4E71.002.269.299.29
#FFFFFF2.261.0021.0021.00
#0000009.2921.001.001.00
##0000009.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#93ADEA
Deuteranopia (green-blind)
#94ABE5
Tritanopia (blue-blind)
#A3AFBC
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa4e7;
/* rgb */ color: rgb(175, 164, 231);
/* oklch */ color: oklch(75.2% 0.096 291.5);
Tailwind
colors: {
  custom: {
    50: '#c8bfef',
    500: '#afa4e7',
    950: '#000000',
  },
}
SCSS
$custom: #afa4e7;
$custom-light: #c8bfef;
$custom-dark: #000000;
JSON
{
  "hex": "#afa4e7",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 231
  },
  "hsl": {
    "h": 249.851,
    "s": 58.261,
    "l": 77.451
  },
  "oklch": {
    "l": 0.75242,
    "c": 0.09576,
    "h": 291.5
  },
  "luminance": 0.41434
}

Semantic roles & 50–950 ramp

primary
#AFA4E7
secondary
#ECF0DB
accent
#C620AB
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA4E7

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

Preview Lab → · Contrast checker → · Palette generator →

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