#AFA0DD#AFA0DD

#AFA0DD is a light, moderate violet. Relative luminance 0.395; OKLCH L 74.0% C 0.088 H 295.4°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#AFA0DD
RGBrgb(175, 160, 221)
HSLhsl(255, 47%, 75%)
HSVhsv(255, 28%, 87%)
CMYKcmyk(20.8%, 27.6%, 0%, 13.3%)
CIE-LABlab(69.09, 17.94, -28.91)
CIE-LCHlch(69.09, 34.02, 301.81°)
OKLaboklab(74.05% 0.0379 -0.0796)
OKLCHoklch(74.05% 0.088 295.4)
XYZxyz(43.2982, 39.4757, 73.7310)
Luminance0.3948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AFA0DD #CEDDA0
analogous
#A0B0DD #AFA0DD #CEA0DD
triadic
#AFA0DD #DDAFA0 #A0DDAF
tetradic
#AFA0DD #DDA0B0 #CEDDA0 #A0DDCE
square
#AFA0DD #DDA0B0 #CEDDA0 #A0DDCE
split-complementary
#AFA0DD #DDCEA0 #B0DDA0
monochromatic
#6346BD #8973CD #AFA0DD #D5CDED #ECE8F7

Accessibility & contrast

On white

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

On black

8.90
#AFA0DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AFA0DD
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AFA0DD#FFFFFF#000000##000000
##AFA0DD1.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#92A9E0
Deuteranopia (green-blind)
#94A8DB
Tritanopia (blue-blind)
#A6AAB5
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #afa0dd;
/* rgb */ color: rgb(175, 160, 221);
/* oklch */ color: oklch(74.0% 0.088 295.4);
Tailwind
colors: {
  custom: {
    50: '#c7bce7',
    500: '#afa0dd',
    950: '#000000',
  },
}
SCSS
$custom: #afa0dd;
$custom-light: #c7bce7;
$custom-dark: #000000;
JSON
{
  "hex": "#afa0dd",
  "rgb": {
    "r": 175,
    "g": 160,
    "b": 221
  },
  "hsl": {
    "h": 254.754,
    "s": 47.287,
    "l": 74.706
  },
  "oklch": {
    "l": 0.74047,
    "c": 0.08813,
    "h": 295.4
  },
  "luminance": 0.39476
}

Semantic roles & 50–950 ramp

primary
#AFA0DD
secondary
#EAEEDD
accent
#BB2B97
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131216
muted
#828184

Preview Lab

Preview with #AFA0DD

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

Preview Lab → · Contrast checker → · Palette generator →

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