#AF72D2#AF72D2

#AF72D2 is a light, vivid violet. Relative luminance 0.258; OKLCH L 65.4% C 0.151 H 312.1°. Best body text is #000000 at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#AF72D2
RGBrgb(175, 114, 210)
HSLhsl(278, 52%, 64%)
HSVhsv(278, 46%, 82%)
CMYKcmyk(16.7%, 45.7%, 0%, 17.6%)
CIE-LABlab(57.85, 41.18, -40.28)
CIE-LCHlch(57.85, 57.60, 315.64°)
OKLaboklab(65.35% 0.1013 -0.112)
OKLCHoklch(65.35% 0.151 312.1)
XYZxyz(35.3274, 25.8024, 64.0796)
Luminance0.2580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72D2 #95D272
analogous
#7F72D2 #AF72D2 #D272C5
triadic
#AF72D2 #D2AF72 #72D2AF
tetradic
#AF72D2 #D27F72 #95D272 #72C5D2
square
#AF72D2 #D27F72 #95D272 #72C5D2
split-complementary
#AF72D2 #C5D272 #72D27F
monochromatic
#733199 #9544C3 #AF72D2 #C9A0E1 #E4CFF0

Accessibility & contrast

On white

3.41
#AF72D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.16
#AF72D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72D2
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72D2#FFFFFF#000000##000000
##AF72D21.003.416.166.16
#FFFFFF3.411.0021.0021.00
#0000006.1621.001.001.00
##0000006.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D88D5
Deuteranopia (green-blind)
#6E8CCF
Tritanopia (blue-blind)
#AC8198
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #af72d2;
/* rgb */ color: rgb(175, 114, 210);
/* oklch */ color: oklch(65.4% 0.151 312.1);
Tailwind
colors: {
  custom: {
    50: '#c99ce0',
    500: '#af72d2',
    950: '#000000',
  },
}
SCSS
$custom: #af72d2;
$custom-light: #c99ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#af72d2",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 210
  },
  "hsl": {
    "h": 278.125,
    "s": 51.613,
    "l": 63.529
  },
  "oklch": {
    "l": 0.65352,
    "c": 0.151,
    "h": 312.1
  },
  "luminance": 0.25802
}

Semantic roles & 50–950 ramp

primary
#AF72D2
secondary
#CBE1BF
accent
#BF265E
background
#FCF9FD
surface
#F8F2FB
border
#D1CCD4
text
#130E15
muted
#827E83

Preview Lab

Preview with #AF72D2

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

Preview Lab → · Contrast checker → · Palette generator →

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