#AFA4EB#AFA4EB

#AFA4EB is a light, moderate blue. Relative luminance 0.417; OKLCH L 75.4% C 0.101 H 290.9°. Best body text is #000000 at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#AFA4EB
RGBrgb(175, 164, 235)
HSLhsl(249, 64%, 78%)
HSVhsv(249, 30%, 92%)
CMYKcmyk(25.5%, 30.2%, 0%, 7.8%)
CIE-LABlab(70.64, 18.97, -34.20)
CIE-LCHlch(70.64, 39.11, 299.02°)
OKLaboklab(75.42% 0.0361 -0.0947)
OKLCHoklch(75.42% 0.101 290.9)
XYZxyz(45.9464, 41.6623, 84.2021)
Luminance0.4166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA4EB #E0EBA4
analogous
#A4BCEB #AFA4EB #D2A4EB
triadic
#AFA4EB #EBAFA4 #A4EBAF
tetradic
#AFA4EB #EBA4BC #E0EBA4 #A4EBD2
square
#AFA4EB #EBA4BC #E0EBA4 #A4EBD2
split-complementary
#AFA4EB #EBD2A4 #BCEBA4
monochromatic
#5740D5 #8372E0 #AFA4EB #DBD6F6 #E9E6F9

Accessibility & contrast

On white

2.25
#AFA4EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.33
#AFA4EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA4EB
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA4EB#FFFFFF#000000##000000
##AFA4EB1.002.259.339.33
#FFFFFF2.251.0021.0021.00
#0000009.3321.001.001.00
##0000009.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#92AEEE
Deuteranopia (green-blind)
#92ABE9
Tritanopia (blue-blind)
#A2B0BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa4eb;
/* rgb */ color: rgb(175, 164, 235);
/* oklch */ color: oklch(75.4% 0.101 290.9);
Tailwind
colors: {
  custom: {
    50: '#c8bff1',
    500: '#afa4eb',
    950: '#000000',
  },
}
SCSS
$custom: #afa4eb;
$custom-light: #c8bff1;
$custom-dark: #000000;
JSON
{
  "hex": "#afa4eb",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 235
  },
  "hsl": {
    "h": 249.296,
    "s": 63.964,
    "l": 78.235
  },
  "oklch": {
    "l": 0.75416,
    "c": 0.10132,
    "h": 290.9
  },
  "luminance": 0.41663
}

Semantic roles & 50–950 ramp

primary
#AFA4EB
secondary
#EDF1DA
accent
#CC1AB0
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA4EB

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

Preview Lab → · Contrast checker → · Palette generator →

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