#AFA0DC#AFA0DC

#AFA0DC is a light, moderate violet. Relative luminance 0.394; OKLCH L 74.0% C 0.087 H 295.7°. Best body text is #000000 at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#AFA0DC
RGBrgb(175, 160, 220)
HSLhsl(255, 46%, 75%)
HSVhsv(255, 27%, 86%)
CMYKcmyk(20.5%, 27.3%, 0%, 13.7%)
CIE-LABlab(69.06, 17.71, -28.42)
CIE-LCHlch(69.06, 33.49, 301.92°)
OKLaboklab(74.01% 0.0376 -0.0782)
OKLCHoklch(74.01% 0.087 295.7)
XYZxyz(43.1654, 39.4225, 73.0315)
Luminance0.3942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0DC #CDDCA0
analogous
#A0AFDC #AFA0DC #CDA0DC
triadic
#AFA0DC #DCAFA0 #A0DCAF
tetradic
#AFA0DC #DCA0AF #CDDCA0 #A0DCCD
square
#AFA0DC #DCA0AF #CDDCA0 #A0DCCD
split-complementary
#AFA0DC #DCCDA0 #AFDCA0
monochromatic
#6447BB #8973CC #AFA0DC #D5CDEC #ECE9F7

Accessibility & contrast

On white

2.36
#AFA0DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.88
#AFA0DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0DC
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0DC#FFFFFF#000000##000000
##AFA0DC1.002.368.888.88
#FFFFFF2.361.0021.0021.00
#0000008.8821.001.001.00
##0000008.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#92A9DF
Deuteranopia (green-blind)
#94A8DA
Tritanopia (blue-blind)
#A6A9B5
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa0dc;
/* rgb */ color: rgb(175, 160, 220);
/* oklch */ color: oklch(74.0% 0.087 295.7);
Tailwind
colors: {
  custom: {
    50: '#c7bce7',
    500: '#afa0dc',
    950: '#000000',
  },
}
SCSS
$custom: #afa0dc;
$custom-light: #c7bce7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0dc",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 220
  },
  "hsl": {
    "h": 255,
    "s": 46.154,
    "l": 74.51
  },
  "oklch": {
    "l": 0.74005,
    "c": 0.08675,
    "h": 295.7
  },
  "luminance": 0.39423
}

Semantic roles & 50–950 ramp

primary
#AFA0DC
secondary
#EAEEDD
accent
#B92C96
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA0DC

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

Preview Lab → · Contrast checker → · Palette generator →

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