#AF96DB#AF96DB

#AF96DB is a light, moderate violet. Relative luminance 0.360; OKLCH L 72.1% C 0.102 H 300.5°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#AF96DB
RGBrgb(175, 150, 219)
HSLhsl(262, 49%, 72%)
HSVhsv(262, 32%, 86%)
CMYKcmyk(20.1%, 31.5%, 0%, 14.1%)
CIE-LABlab(66.55, 23.10, -31.74)
CIE-LCHlch(66.55, 39.25, 306.05°)
OKLaboklab(72.07% 0.0516 -0.0876)
OKLCHoklch(72.07% 0.102 300.5)
XYZxyz(41.3690, 36.0410, 71.7813)
Luminance0.3604 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF96DB #C2DB96
analogous
#96A0DB #AF96DB #D196DB
triadic
#AF96DB #DBAF96 #96DBAF
tetradic
#AF96DB #DB96A0 #C2DB96 #96DBD1
square
#AF96DB #DB96A0 #C2DB96 #96DBD1
split-complementary
#AF96DB #DBD196 #A0DB96
monochromatic
#6B3FB8 #8C68CB #AF96DB #D2C4EB #EEE8F7

Accessibility & contrast

On white

2.56
#AF96DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#AF96DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF96DB
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF96DB#FFFFFF#000000##000000
##AF96DB1.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A2DE
Deuteranopia (green-blind)
#8BA1D9
Tritanopia (blue-blind)
#A7A1AF
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #af96db;
/* rgb */ color: rgb(175, 150, 219);
/* oklch */ color: oklch(72.1% 0.102 300.5);
Tailwind
colors: {
  custom: {
    50: '#c8b5e6',
    500: '#af96db',
    950: '#000000',
  },
}
SCSS
$custom: #af96db;
$custom-light: #c8b5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#af96db",
  "rgb": {
    "r": 175,
    "g": 150,
    "b": 219
  },
  "hsl": {
    "h": 261.739,
    "s": 48.936,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72068,
    "c": 0.10165,
    "h": 300.5
  },
  "luminance": 0.36041
}

Semantic roles & 50–950 ramp

primary
#AF96DB
secondary
#E8EEDD
accent
#BC2987
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF96DB

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

Preview Lab → · Contrast checker → · Palette generator →

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