#AF72DC#AF72DC

#AF72DC is a light, vivid violet. Relative luminance 0.263; OKLCH L 65.9% C 0.163 H 309.2°. Best body text is #000000 at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#AF72DC
RGBrgb(175, 114, 220)
HSLhsl(275, 60%, 65%)
HSVhsv(275, 48%, 86%)
CMYKcmyk(20.5%, 48.2%, 0%, 13.7%)
CIE-LABlab(58.34, 43.39, -45.14)
CIE-LCHlch(58.34, 62.61, 313.87°)
OKLaboklab(65.88% 0.1027 -0.1261)
OKLCHoklch(65.88% 0.163 309.2)
XYZxyz(36.6123, 26.3164, 70.8471)
Luminance0.2632 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72DC #9FDC72
analogous
#7A72DC #AF72DC #DC72D4
triadic
#AF72DC #DCAF72 #72DCAF
tetradic
#AF72DC #DC7A72 #9FDC72 #72D4DC
square
#AF72DC #DC7A72 #9FDC72 #72D4DC
split-complementary
#AF72DC #D4DC72 #72DC7A
monochromatic
#732AAA #9341D0 #AF72DC #CBA3E8 #E7D4F4

Accessibility & contrast

On white

3.35
#AF72DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.26
#AF72DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72DC
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72DC#FFFFFF#000000##000000
##AF72DC1.003.356.266.26
#FFFFFF3.351.0021.0021.00
#0000006.2621.001.001.00
##0000006.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#578AE0
Deuteranopia (green-blind)
#688DD9
Tritanopia (blue-blind)
#A9839D
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #af72dc;
/* rgb */ color: rgb(175, 114, 220);
/* oklch */ color: oklch(65.9% 0.163 309.2);
Tailwind
colors: {
  custom: {
    50: '#c99ce7',
    500: '#af72dc',
    950: '#000000',
  },
}
SCSS
$custom: #af72dc;
$custom-light: #c99ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#af72dc",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 220
  },
  "hsl": {
    "h": 274.528,
    "s": 60.227,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65875,
    "c": 0.16259,
    "h": 309.2
  },
  "luminance": 0.26316
}

Semantic roles & 50–950 ramp

primary
#AF72DC
secondary
#D2E7C3
accent
#C81E66
background
#FCF9FE
surface
#F9F2FC
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF72DC

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

Preview Lab → · Contrast checker → · Palette generator →

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