#AFA4E5#AFA4E5

#AFA4E5 is a light, moderate violet. Relative luminance 0.413; OKLCH L 75.2% C 0.093 H 291.8°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#AFA4E5
RGBrgb(175, 164, 229)
HSLhsl(250, 56%, 77%)
HSVhsv(250, 28%, 90%)
CMYKcmyk(23.6%, 28.4%, 0%, 10.2%)
CIE-LABlab(70.40, 17.55, -31.29)
CIE-LCHlch(70.40, 35.88, 299.29°)
OKLaboklab(75.16% 0.0345 -0.0864)
OKLCHoklch(75.16% 0.093 291.8)
XYZxyz(45.0941, 41.3214, 79.7136)
Luminance0.4132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA4E5 #DAE5A4
analogous
#A4BAE5 #AFA4E5 #D0A4E5
triadic
#AFA4E5 #E5AFA4 #A4E5AF
tetradic
#AFA4E5 #E5A4BA #DAE5A4 #A4E5D0
square
#AFA4E5 #E5A4BA #DAE5A4 #A4E5D0
split-complementary
#AFA4E5 #E5D0A4 #BAE5A4
monochromatic
#5B45CA #8574D7 #AFA4E5 #D9D4F3 #EAE7F8

Accessibility & contrast

On white

2.27
#AFA4E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#AFA4E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA4E5
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA4E5#FFFFFF#000000##000000
##AFA4E51.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#94ADE8
Deuteranopia (green-blind)
#95ABE3
Tritanopia (blue-blind)
#A4AFBB
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa4e5;
/* rgb */ color: rgb(175, 164, 229);
/* oklch */ color: oklch(75.2% 0.093 291.8);
Tailwind
colors: {
  custom: {
    50: '#c8bfed',
    500: '#afa4e5',
    950: '#000000',
  },
}
SCSS
$custom: #afa4e5;
$custom-light: #c8bfed;
$custom-dark: #000000;
JSON
{
  "hex": "#afa4e5",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 229
  },
  "hsl": {
    "h": 250.154,
    "s": 55.556,
    "l": 77.059
  },
  "oklch": {
    "l": 0.75156,
    "c": 0.09299,
    "h": 291.8
  },
  "luminance": 0.41322
}

Semantic roles & 50–950 ramp

primary
#AFA4E5
secondary
#ECEFDC
accent
#C322A8
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA4E5

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

Preview Lab → · Contrast checker → · Palette generator →

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