#AF72FE#AF72FE

#AF72FE is a light, highly saturated violet. Relative luminance 0.283; OKLCH L 67.8% C 0.202 H 301.3°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#AF72FE
RGBrgb(175, 114, 254)
HSLhsl(266, 99%, 72%)
HSVhsv(266, 55%, 100%)
CMYKcmyk(31.1%, 55.1%, 0%, 0.4%)
CIE-LABlab(60.16, 51.28, -61.14)
CIE-LCHlch(60.16, 79.80, 309.99°)
OKLaboklab(67.82% 0.1051 -0.1728)
OKLCHoklch(67.82% 0.202 301.3)
XYZxyz(41.5817, 28.3042, 97.0193)
Luminance0.2830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72FE #C1FE72
analogous
#727BFE #AF72FE #F572FE
triadic
#AF72FE #FEAF72 #72FEAF
tetradic
#AF72FE #FE727B #C1FE72 #72FEF5
square
#AF72FE #FE727B #C1FE72 #72FEF5
split-complementary
#AF72FE #FEF572 #7BFE72
monochromatic
#6B02F4 #8D35FE #AF72FE #D1AFFE #EEE1FF

Accessibility & contrast

On white

3.15
#AF72FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#AF72FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72FE
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72FE#FFFFFF#000000##000000
##AF72FE1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3890FF
Deuteranopia (green-blind)
#4E90FB
Tritanopia (blue-blind)
#9F8EAD
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #af72fe;
/* rgb */ color: rgb(175, 114, 254);
/* oklch */ color: oklch(67.8% 0.202 301.3);
Tailwind
colors: {
  custom: {
    50: '#cb9cff',
    500: '#af72fe',
    950: '#000000',
  },
}
SCSS
$custom: #af72fe;
$custom-light: #cb9cff;
$custom-dark: #000000;
JSON
{
  "hex": "#af72fe",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 254
  },
  "hsl": {
    "h": 266.143,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.67817,
    "c": 0.20226,
    "h": 301.3
  },
  "luminance": 0.28304
}

Semantic roles & 50–950 ramp

primary
#AF72FE
secondary
#E8F7D4
accent
#E60082
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E18
muted
#827E86

Preview Lab

Preview with #AF72FE

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

Preview Lab → · Contrast checker → · Palette generator →

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