#AF72E4#AF72E4

#AF72E4 is a light, vivid violet. Relative luminance 0.268; OKLCH L 66.3% C 0.172 H 307.0°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#AF72E4
RGBrgb(175, 114, 228)
HSLhsl(272, 68%, 67%)
HSVhsv(272, 50%, 89%)
CMYKcmyk(23.2%, 50%, 0%, 10.6%)
CIE-LABlab(58.74, 45.20, -48.98)
CIE-LCHlch(58.74, 66.65, 312.70°)
OKLaboklab(66.31% 0.1035 -0.1372)
OKLCHoklch(66.31% 0.172 307)
XYZxyz(37.6973, 26.7504, 76.5612)
Luminance0.2675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72E4 #A7E472
analogous
#7672E4 #AF72E4 #E472E0
triadic
#AF72E4 #E4AF72 #72E4AF
tetradic
#AF72E4 #E47672 #A7E472 #72E0E4
square
#AF72E4 #E47672 #A7E472 #72E0E4
split-complementary
#AF72E4 #E0E472 #72E476
monochromatic
#7323B8 #923FDA #AF72E4 #CCA5EE #E9D9F8

Accessibility & contrast

On white

3.31
#AF72E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#AF72E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72E4
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72E4#FFFFFF#000000##000000
##AF72E41.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#528BE8
Deuteranopia (green-blind)
#638EE1
Tritanopia (blue-blind)
#A786A1
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af72e4;
/* rgb */ color: rgb(175, 114, 228);
/* oklch */ color: oklch(66.3% 0.172 307.0);
Tailwind
colors: {
  custom: {
    50: '#c99ced',
    500: '#af72e4',
    950: '#000000',
  },
}
SCSS
$custom: #af72e4;
$custom-light: #c99ced;
$custom-dark: #000000;
JSON
{
  "hex": "#af72e4",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 228
  },
  "hsl": {
    "h": 272.105,
    "s": 67.857,
    "l": 67.059
  },
  "oklch": {
    "l": 0.66309,
    "c": 0.17192,
    "h": 307
  },
  "luminance": 0.2675
}

Semantic roles & 50–950 ramp

primary
#AF72E4
secondary
#D8EBC7
accent
#D0166C
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF72E4

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

Preview Lab → · Contrast checker → · Palette generator →

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