#AFA5DC#AFA5DC

#AFA5DC is a light, moderate violet. Relative luminance 0.412; OKLCH L 75.0% C 0.079 H 292.7°. Best body text is #000000 at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#AFA5DC
RGBrgb(175, 165, 220)
HSLhsl(251, 44%, 75%)
HSVhsv(251, 25%, 86%)
CMYKcmyk(20.5%, 25%, 0%, 13.7%)
CIE-LABlab(70.31, 14.91, -26.50)
CIE-LCHlch(70.31, 30.40, 299.37°)
OKLaboklab(74.97% 0.0305 -0.0727)
OKLCHoklch(74.97% 0.079 292.7)
XYZxyz(44.0496, 41.1911, 73.3262)
Luminance0.4119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA5DC #D2DCA5
analogous
#A5B6DC #AFA5DC #CAA5DC
triadic
#AFA5DC #DCAFA5 #A5DCAF
tetradic
#AFA5DC #DCA5B6 #D2DCA5 #A5DCCA
square
#AFA5DC #DCA5B6 #D2DCA5 #A5DCCA
split-complementary
#AFA5DC #DCCAA5 #B6DCA5
monochromatic
#614DBA #8879CB #AFA5DC #D6D1ED #EBE9F6

Accessibility & contrast

On white

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

On black

9.24
#AFA5DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA5DC
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA5DC#FFFFFF#000000##000000
##AFA5DC1.002.279.249.24
#FFFFFF2.271.0021.0021.00
#0000009.2421.001.001.00
##0000009.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#98ADDE
Deuteranopia (green-blind)
#99ABDA
Tritanopia (blue-blind)
#A6AEB8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #afa5dc;
/* rgb */ color: rgb(175, 165, 220);
/* oklch */ color: oklch(75.0% 0.079 292.7);
Tailwind
colors: {
  custom: {
    50: '#c7bfe7',
    500: '#afa5dc',
    950: '#000000',
  },
}
SCSS
$custom: #afa5dc;
$custom-light: #c7bfe7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa5dc",
  "rgb": {
    "r": 175,
    "g": 165,
    "b": 220
  },
  "hsl": {
    "h": 250.909,
    "s": 44,
    "l": 75.49
  },
  "oklch": {
    "l": 0.74973,
    "c": 0.07888,
    "h": 292.7
  },
  "luminance": 0.41192
}

Semantic roles & 50–950 ramp

primary
#AFA5DC
secondary
#EAEDDE
accent
#B72E9E
background
#FCFBFE
surface
#F8F7FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA5DC

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

Preview Lab → · Contrast checker → · Palette generator →

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