#AF97DA#AF97DA

#AF97DA is a light, moderate violet. Relative luminance 0.363; OKLCH L 72.2% C 0.099 H 300.4°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#AF97DA
RGBrgb(175, 151, 218)
HSLhsl(261, 48%, 72%)
HSVhsv(261, 31%, 85%)
CMYKcmyk(19.7%, 30.7%, 0%, 14.5%)
CIE-LABlab(66.76, 22.31, -30.87)
CIE-LCHlch(66.76, 38.08, 305.85°)
OKLaboklab(72.21% 0.0499 -0.0851)
OKLCHoklch(72.21% 0.099 300.4)
XYZxyz(41.3980, 36.3090, 71.1434)
Luminance0.3631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF97DA #C2DA97
analogous
#97A0DA #AF97DA #D197DA
triadic
#AF97DA #DAAF97 #97DAAF
tetradic
#AF97DA #DA97A0 #C2DA97 #97DAD1
square
#AF97DA #DA97A0 #C2DA97 #97DAD1
split-complementary
#AF97DA #DAD197 #A0DA97
monochromatic
#6B41B6 #8C6ACA #AF97DA #D2C4EA #EEE8F7

Accessibility & contrast

On white

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

On black

8.26
#AF97DA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #AF97DA
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF97DA#FFFFFF#000000##000000
##AF97DA1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#88A2DD
Deuteranopia (green-blind)
#8CA2D8
Tritanopia (blue-blind)
#A8A1AF
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #af97da;
/* rgb */ color: rgb(175, 151, 218);
/* oklch */ color: oklch(72.2% 0.099 300.4);
Tailwind
colors: {
  custom: {
    50: '#c7b5e5',
    500: '#af97da',
    950: '#000000',
  },
}
SCSS
$custom: #af97da;
$custom-light: #c7b5e5;
$custom-dark: #000000;
JSON
{
  "hex": "#af97da",
  "rgb": {
    "r": 175,
    "g": 151,
    "b": 218
  },
  "hsl": {
    "h": 261.493,
    "s": 47.518,
    "l": 72.353
  },
  "oklch": {
    "l": 0.72211,
    "c": 0.09865,
    "h": 300.4
  },
  "luminance": 0.36309
}

Semantic roles & 50–950 ramp

primary
#AF97DA
secondary
#E8EEDD
accent
#BB2B87
background
#FCFBFE
surface
#F8F6FC
border
#D1D0D5
text
#131116
muted
#828084

Preview Lab

Preview with #AF97DA

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

Preview Lab → · Contrast checker → · Palette generator →

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