#AF72BD#AF72BD

#AF72BD is a light, vivid purple. Relative luminance 0.248; OKLCH L 64.3% C 0.127 H 320.0°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#AF72BD
RGBrgb(175, 114, 189)
HSLhsl(289, 36%, 59%)
HSVhsv(289, 40%, 74%)
CMYKcmyk(7.4%, 39.7%, 0%, 25.9%)
CIE-LABlab(56.90, 36.76, -29.82)
CIE-LCHlch(56.90, 47.34, 320.95°)
OKLaboklab(64.33% 0.0975 -0.0819)
OKLCHoklch(64.33% 0.127 320)
XYZxyz(32.8807, 24.8238, 51.1937)
Luminance0.2482 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72BD #80BD72
analogous
#8A72BD #AF72BD #BD72A6
triadic
#AF72BD #BDAF72 #72BDAF
tetradic
#AF72BD #BD8A72 #80BD72 #72A6BD
square
#AF72BD #BD8A72 #80BD72 #72A6BD
split-complementary
#AF72BD #A6BD72 #72BD8A
monochromatic
#6F3A7B #944DA5 #AF72BD #C79CD1 #DEC5E4

Accessibility & contrast

On white

3.52
#AF72BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.96
#AF72BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72BD
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72BD#FFFFFF#000000##000000
##AF72BD1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6884C0
Deuteranopia (green-blind)
#788BBB
Tritanopia (blue-blind)
#B07B8F
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #af72bd;
/* rgb */ color: rgb(175, 114, 189);
/* oklch */ color: oklch(64.3% 0.127 320.0);
Tailwind
colors: {
  custom: {
    50: '#c89cd1',
    500: '#af72bd',
    950: '#000000',
  },
}
SCSS
$custom: #af72bd;
$custom-light: #c89cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#af72bd",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 189
  },
  "hsl": {
    "h": 288.8,
    "s": 36.232,
    "l": 59.412
  },
  "oklch": {
    "l": 0.64334,
    "c": 0.1273,
    "h": 320
  },
  "luminance": 0.24823
}

Semantic roles & 50–950 ramp

primary
#AF72BD
secondary
#BCD4B7
accent
#CC5C71
background
#FCF9FC
surface
#F8F2F9
border
#D1CCD2
text
#130E14
muted
#827E82

Preview Lab

Preview with #AF72BD

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

Preview Lab → · Contrast checker → · Palette generator →

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