#AF72DF#AF72DF

#AF72DF is a light, vivid violet. Relative luminance 0.265; OKLCH L 66.0% C 0.166 H 308.3°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#AF72DF
RGBrgb(175, 114, 223)
HSLhsl(274, 63%, 66%)
HSVhsv(274, 49%, 87%)
CMYKcmyk(21.5%, 48.9%, 0%, 12.5%)
CIE-LABlab(58.49, 44.06, -46.59)
CIE-LCHlch(58.49, 64.12, 313.40°)
OKLaboklab(66.04% 0.103 -0.1303)
OKLCHoklch(66.04% 0.166 308.3)
XYZxyz(37.0132, 26.4768, 72.9584)
Luminance0.2648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72DF #A2DF72
analogous
#7872DF #AF72DF #DF72D8
triadic
#AF72DF #DFAF72 #72DFAF
tetradic
#AF72DF #DF7872 #A2DF72 #72D8DF
square
#AF72DF #DF7872 #A2DF72 #72D8DF
split-complementary
#AF72DF #D8DF72 #72DF78
monochromatic
#7328AF #9340D4 #AF72DF #CBA4EA #E8D6F6

Accessibility & contrast

On white

3.34
#AF72DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#AF72DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72DF
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72DF#FFFFFF#000000##000000
##AF72DF1.003.346.306.30
#FFFFFF3.341.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#558AE3
Deuteranopia (green-blind)
#668DDC
Tritanopia (blue-blind)
#A8849E
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af72df;
/* rgb */ color: rgb(175, 114, 223);
/* oklch */ color: oklch(66.0% 0.166 308.3);
Tailwind
colors: {
  custom: {
    50: '#c99ce9',
    500: '#af72df',
    950: '#000000',
  },
}
SCSS
$custom: #af72df;
$custom-light: #c99ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#af72df",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 223
  },
  "hsl": {
    "h": 273.578,
    "s": 63.006,
    "l": 66.078
  },
  "oklch": {
    "l": 0.66036,
    "c": 0.16609,
    "h": 308.3
  },
  "luminance": 0.26476
}

Semantic roles & 50–950 ramp

primary
#AF72DF
secondary
#D4E8C4
accent
#CB1B68
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF72DF

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

Preview Lab → · Contrast checker → · Palette generator →

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