#AFA4DF#AFA4DF

#AFA4DF is a light, moderate violet. Relative luminance 0.410; OKLCH L 74.9% C 0.085 H 292.8°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#AFA4DF
RGBrgb(175, 164, 223)
HSLhsl(251, 48%, 76%)
HSVhsv(251, 26%, 87%)
CMYKcmyk(21.5%, 26.5%, 0%, 12.5%)
CIE-LABlab(70.17, 16.16, -28.36)
CIE-LCHlch(70.17, 32.64, 299.68°)
OKLaboklab(74.9% 0.0328 -0.078)
OKLCHoklch(74.9% 0.085 292.8)
XYZxyz(44.2709, 40.9921, 75.3776)
Luminance0.4099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA4DF #D4DFA4
analogous
#A4B6DF #AFA4DF #CCA4DF
triadic
#AFA4DF #DFAFA4 #A4DFAF
tetradic
#AFA4DF #DFA4B6 #D4DFA4 #A4DFCC
square
#AFA4DF #DFA4B6 #D4DFA4 #A4DFCC
split-complementary
#AFA4DF #DFCCA4 #B6DFA4
monochromatic
#5F49BF #8777CF #AFA4DF #D7D1EF #EBE8F7

Accessibility & contrast

On white

2.28
#AFA4DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.20
#AFA4DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA4DF
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA4DF#FFFFFF#000000##000000
##AFA4DF1.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#96ACE2
Deuteranopia (green-blind)
#97ABDD
Tritanopia (blue-blind)
#A5AEB9
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa4df;
/* rgb */ color: rgb(175, 164, 223);
/* oklch */ color: oklch(74.9% 0.085 292.8);
Tailwind
colors: {
  custom: {
    50: '#c7bfe9',
    500: '#afa4df',
    950: '#000000',
  },
}
SCSS
$custom: #afa4df;
$custom-light: #c7bfe9;
$custom-dark: #000000;
JSON
{
  "hex": "#afa4df",
  "rgb": {
    "r": 175,
    "g": 164,
    "b": 223
  },
  "hsl": {
    "h": 251.186,
    "s": 47.967,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74902,
    "c": 0.08461,
    "h": 292.8
  },
  "luminance": 0.40993
}

Semantic roles & 50–950 ramp

primary
#AFA4DF
secondary
#EBEEDD
accent
#BB2AA0
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA4DF

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

Preview Lab → · Contrast checker → · Palette generator →

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