#AF97DC#AF97DC

#AF97DC is a light, moderate violet. Relative luminance 0.364; OKLCH L 72.3% C 0.101 H 299.8°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#AF97DC
RGBrgb(175, 151, 220)
HSLhsl(261, 50%, 73%)
HSVhsv(261, 31%, 86%)
CMYKcmyk(20.5%, 31.4%, 0%, 13.7%)
CIE-LABlab(66.84, 22.76, -31.85)
CIE-LCHlch(66.84, 39.15, 305.55°)
OKLaboklab(72.3% 0.0504 -0.0879)
OKLCHoklch(72.3% 0.101 299.8)
XYZxyz(41.6613, 36.4143, 72.5301)
Luminance0.3641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97DC #C4DC97
analogous
#97A1DC #AF97DC #D297DC
triadic
#AF97DC #DCAF97 #97DCAF
tetradic
#AF97DC #DC97A1 #C4DC97 #97DCD2
square
#AF97DC #DC97A1 #C4DC97 #97DCD2
split-complementary
#AF97DC #DCD297 #A1DC97
monochromatic
#6A3FBA #8C69CD #AF97DC #D2C5EB #EDE8F7

Accessibility & contrast

On white

2.54
#AF97DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#AF97DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97DC
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97DC#FFFFFF#000000##000000
##AF97DC1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A2DF
Deuteranopia (green-blind)
#8CA2DA
Tritanopia (blue-blind)
#A7A2B0
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #af97dc;
/* rgb */ color: rgb(175, 151, 220);
/* oklch */ color: oklch(72.3% 0.101 299.8);
Tailwind
colors: {
  custom: {
    50: '#c8b5e7',
    500: '#af97dc',
    950: '#000000',
  },
}
SCSS
$custom: #af97dc;
$custom-light: #c8b5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#af97dc",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 260.87,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.72298,
    "c": 0.10134,
    "h": 299.8
  },
  "luminance": 0.36414
}

Semantic roles & 50–950 ramp

primary
#AF97DC
secondary
#E8EEDD
accent
#BD2989
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF97DC

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

Preview Lab → · Contrast checker → · Palette generator →

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