#AFA4DC#AFA4DC

#AFA4DC is a light, moderate violet. Relative luminance 0.408; OKLCH L 74.8% C 0.080 H 293.4°. Best body text is #000000 at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#AFA4DC
RGBrgb(175, 164, 220)
HSLhsl(252, 44%, 75%)
HSVhsv(252, 25%, 86%)
CMYKcmyk(20.5%, 25.5%, 0%, 13.7%)
CIE-LABlab(70.06, 15.47, -26.88)
CIE-LCHlch(70.06, 31.02, 299.92°)
OKLaboklab(74.78% 0.0319 -0.0738)
OKLCHoklch(74.78% 0.08 293.4)
XYZxyz(43.8700, 40.8317, 73.2663)
Luminance0.4083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA4DC #D1DCA4
analogous
#A4B5DC #AFA4DC #CBA4DC
triadic
#AFA4DC #DCAFA4 #A4DCAF
tetradic
#AFA4DC #DCA4B5 #D1DCA4 #A4DCCB
square
#AFA4DC #DCA4B5 #D1DCA4 #A4DCCB
split-complementary
#AFA4DC #DCCBA4 #B5DCA4
monochromatic
#614CBA #8878CB #AFA4DC #D6D0ED #ECE9F6

Accessibility & contrast

On white

2.29
#AFA4DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.17
#AFA4DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA4DC
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA4DC#FFFFFF#000000##000000
##AFA4DC1.002.299.179.17
#FFFFFF2.291.0021.0021.00
#0000009.1721.001.001.00
##0000009.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#97ACDE
Deuteranopia (green-blind)
#98AADA
Tritanopia (blue-blind)
#A6ADB7
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa4dc;
/* rgb */ color: rgb(175, 164, 220);
/* oklch */ color: oklch(74.8% 0.080 293.4);
Tailwind
colors: {
  custom: {
    50: '#c7bfe7',
    500: '#afa4dc',
    950: '#000000',
  },
}
SCSS
$custom: #afa4dc;
$custom-light: #c7bfe7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa4dc",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 220
  },
  "hsl": {
    "h": 251.786,
    "s": 44.444,
    "l": 75.294
  },
  "oklch": {
    "l": 0.74778,
    "c": 0.08044,
    "h": 293.4
  },
  "luminance": 0.40832
}

Semantic roles & 50–950 ramp

primary
#AFA4DC
secondary
#EAEDDE
accent
#B82E9D
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA4DC

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

Preview Lab → · Contrast checker → · Palette generator →

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