#AFA4E4#AFA4E4

#AFA4E4 is a light, moderate violet. Relative luminance 0.413; OKLCH L 75.1% C 0.092 H 291.9°. Best body text is #000000 at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#AFA4E4
RGBrgb(175, 164, 228)
HSLhsl(250, 54%, 77%)
HSVhsv(250, 28%, 89%)
CMYKcmyk(23.2%, 28.1%, 0%, 10.6%)
CIE-LABlab(70.36, 17.32, -30.80)
CIE-LCHlch(70.36, 35.34, 299.35°)
OKLaboklab(75.11% 0.0342 -0.085)
OKLCHoklch(75.11% 0.092 291.9)
XYZxyz(44.9549, 41.2657, 78.9804)
Luminance0.4127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA4E4 #D9E4A4
analogous
#A4B9E4 #AFA4E4 #CFA4E4
triadic
#AFA4E4 #E4AFA4 #A4E4AF
tetradic
#AFA4E4 #E4A4B9 #D9E4A4 #A4E4CF
square
#AFA4E4 #E4A4B9 #D9E4A4 #A4E4CF
split-complementary
#AFA4E4 #E4CFA4 #B9E4A4
monochromatic
#5C46C8 #8675D6 #AFA4E4 #D8D3F2 #EAE7F8

Accessibility & contrast

On white

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

On black

9.25
#AFA4E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA4E4
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA4E4#FFFFFF#000000##000000
##AFA4E41.002.279.259.25
#FFFFFF2.271.0021.0021.00
#0000009.2521.001.001.00
##0000009.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #afa4e4;
/* rgb */ color: rgb(175, 164, 228);
/* oklch */ color: oklch(75.1% 0.092 291.9);
Tailwind
colors: {
  custom: {
    50: '#c8bfec',
    500: '#afa4e4',
    950: '#000000',
  },
}
SCSS
$custom: #afa4e4;
$custom-light: #c8bfec;
$custom-dark: #000000;
JSON
{
  "hex": "#afa4e4",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 228
  },
  "hsl": {
    "h": 250.313,
    "s": 54.237,
    "l": 76.863
  },
  "oklch": {
    "l": 0.75113,
    "c": 0.09159,
    "h": 291.9
  },
  "luminance": 0.41266
}

Semantic roles & 50–950 ramp

primary
#AFA4E4
secondary
#ECEFDC
accent
#C224A7
background
#FCFBFE
surface
#F8F7FD
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA4E4

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

Preview Lab → · Contrast checker → · Palette generator →

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