#AFA4ED#AFA4ED

#AFA4ED is a light, moderate blue. Relative luminance 0.418; OKLCH L 75.5% C 0.104 H 290.6°. Best body text is #000000 at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#AFA4ED
RGBrgb(175, 164, 237)
HSLhsl(249, 67%, 79%)
HSVhsv(249, 31%, 93%)
CMYKcmyk(26.2%, 30.8%, 0%, 7.1%)
CIE-LABlab(70.72, 19.45, -35.17)
CIE-LCHlch(70.72, 40.19, 298.95°)
OKLaboklab(75.51% 0.0366 -0.0974)
OKLCHoklch(75.51% 0.104 290.6)
XYZxyz(46.2370, 41.7785, 85.7324)
Luminance0.4178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA4ED #E2EDA4
analogous
#A4BDED #AFA4ED #D3A4ED
triadic
#AFA4ED #EDAFA4 #A4EDAF
tetradic
#AFA4ED #EDA4BD #E2EDA4 #A4EDD3
square
#AFA4ED #EDA4BD #E2EDA4 #A4EDD3
split-complementary
#AFA4ED #EDD3A4 #BDEDA4
monochromatic
#553ED9 #8271E3 #AFA4ED #DCD7F7 #E9E5FA

Accessibility & contrast

On white

2.24
#AFA4ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.36
#AFA4ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA4ED
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA4ED#FFFFFF#000000##000000
##AFA4ED1.002.249.369.36
#FFFFFF2.241.0021.0021.00
#0000009.3621.001.001.00
##0000009.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91AEF0
Deuteranopia (green-blind)
#91ABEB
Tritanopia (blue-blind)
#A1B1BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #afa4ed;
/* rgb */ color: rgb(175, 164, 237);
/* oklch */ color: oklch(75.5% 0.104 290.6);
Tailwind
colors: {
  custom: {
    50: '#c8bff3',
    500: '#afa4ed',
    950: '#000000',
  },
}
SCSS
$custom: #afa4ed;
$custom-light: #c8bff3;
$custom-dark: #000000;
JSON
{
  "hex": "#afa4ed",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 237
  },
  "hsl": {
    "h": 249.041,
    "s": 66.972,
    "l": 78.627
  },
  "oklch": {
    "l": 0.75505,
    "c": 0.10409,
    "h": 290.6
  },
  "luminance": 0.41779
}

Semantic roles & 50–950 ramp

primary
#AFA4ED
secondary
#EEF1DA
accent
#CF17B3
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131217
muted
#828185

Preview Lab

Preview with #AFA4ED

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

Preview Lab → · Contrast checker → · Palette generator →

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