#AFA4DD#AFA4DD

#AFA4DD is a light, moderate violet. Relative luminance 0.409; OKLCH L 74.8% C 0.082 H 293.2°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#AFA4DD
RGBrgb(175, 164, 221)
HSLhsl(252, 46%, 75%)
HSVhsv(252, 26%, 87%)
CMYKcmyk(20.8%, 25.8%, 0%, 13.3%)
CIE-LABlab(70.10, 15.70, -27.37)
CIE-LCHlch(70.10, 31.56, 299.83°)
OKLaboklab(74.82% 0.0322 -0.0752)
OKLCHoklch(74.82% 0.082 293.2)
XYZxyz(44.0028, 40.8849, 73.9659)
Luminance0.4088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA4DD #D2DDA4
analogous
#A4B5DD #AFA4DD #CBA4DD
triadic
#AFA4DD #DDAFA4 #A4DDAF
tetradic
#AFA4DD #DDA4B5 #D2DDA4 #A4DDCB
square
#AFA4DD #DDA4B5 #D2DDA4 #A4DDCB
split-complementary
#AFA4DD #DDCBA4 #B5DDA4
monochromatic
#614BBC #8877CC #AFA4DD #D6D1EE #EBE9F7

Accessibility & contrast

On white

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

On black

9.18
#AFA4DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA4DD
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA4DD#FFFFFF#000000##000000
##AFA4DD1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#97ACDF
Deuteranopia (green-blind)
#98AADB
Tritanopia (blue-blind)
#A6ADB8
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #afa4dd;
/* rgb */ color: rgb(175, 164, 221);
/* oklch */ color: oklch(74.8% 0.082 293.2);
Tailwind
colors: {
  custom: {
    50: '#c7bfe7',
    500: '#afa4dd',
    950: '#000000',
  },
}
SCSS
$custom: #afa4dd;
$custom-light: #c7bfe7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa4dd",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 221
  },
  "hsl": {
    "h": 251.579,
    "s": 45.6,
    "l": 75.49
  },
  "oklch": {
    "l": 0.74819,
    "c": 0.08183,
    "h": 293.2
  },
  "luminance": 0.40885
}

Semantic roles & 50–950 ramp

primary
#AFA4DD
secondary
#EAEEDD
accent
#B92D9E
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA4DD

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

Preview Lab → · Contrast checker → · Palette generator →

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