#AF72FB#AF72FB

#AF72FB is a light, vivid violet. Relative luminance 0.281; OKLCH L 67.6% C 0.199 H 301.9°. Best body text is #000000 at 6.62:1 contrast (WCAG AA passes).

Color values

HEX#AF72FB
RGBrgb(175, 114, 251)
HSLhsl(267, 94%, 72%)
HSVhsv(267, 55%, 98%)
CMYKcmyk(30.3%, 54.6%, 0%, 1.6%)
CIE-LABlab(59.99, 50.57, -59.76)
CIE-LCHlch(59.99, 78.28, 310.24°)
OKLaboklab(67.64% 0.105 -0.1688)
OKLCHoklch(67.64% 0.199 301.9)
XYZxyz(41.1051, 28.1135, 94.5090)
Luminance0.2811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72FB #BEFB72
analogous
#727AFB #AF72FB #F372FB
triadic
#AF72FB #FBAF72 #72FBAF
tetradic
#AF72FB #FB727A #BEFB72 #72FBF3
square
#AF72FB #FB727A #BEFB72 #72FBF3
split-complementary
#AF72FB #FBF372 #7AFB72
monochromatic
#6D07EC #8D36F9 #AF72FB #D1AEFD #EEE1FE

Accessibility & contrast

On white

3.17
#AF72FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.62
#AF72FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72FB
6.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72FB#FFFFFF#000000##000000
##AF72FB1.003.176.626.62
#FFFFFF3.171.0021.0021.00
#0000006.6221.001.001.00
##0000006.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C90FF
Deuteranopia (green-blind)
#5190F8
Tritanopia (blue-blind)
#A08DAC
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af72fb;
/* rgb */ color: rgb(175, 114, 251);
/* oklch */ color: oklch(67.6% 0.199 301.9);
Tailwind
colors: {
  custom: {
    50: '#cb9cfd',
    500: '#af72fb',
    950: '#000000',
  },
}
SCSS
$custom: #af72fb;
$custom-light: #cb9cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#af72fb",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 251
  },
  "hsl": {
    "h": 266.715,
    "s": 94.483,
    "l": 71.569
  },
  "oklch": {
    "l": 0.67636,
    "c": 0.19877,
    "h": 301.9
  },
  "luminance": 0.28114
}

Semantic roles & 50–950 ramp

primary
#AF72FB
secondary
#E6F6D3
accent
#E6007F
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF72FB

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

Preview Lab → · Contrast checker → · Palette generator →

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