#AF72E2#AF72E2

#AF72E2 is a light, vivid violet. Relative luminance 0.266; OKLCH L 66.2% C 0.170 H 307.5°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#AF72E2
RGBrgb(175, 114, 226)
HSLhsl(273, 66%, 67%)
HSVhsv(273, 50%, 89%)
CMYKcmyk(22.6%, 49.6%, 0%, 11.4%)
CIE-LABlab(58.64, 44.74, -48.02)
CIE-LCHlch(58.64, 65.64, 312.97°)
OKLaboklab(66.2% 0.1034 -0.1345)
OKLCHoklch(66.2% 0.17 307.5)
XYZxyz(37.4212, 26.6400, 75.1074)
Luminance0.2664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72E2 #A5E272
analogous
#7772E2 #AF72E2 #E272DD
triadic
#AF72E2 #E2AF72 #72E2AF
tetradic
#AF72E2 #E27772 #A5E272 #72DDE2
square
#AF72E2 #E27772 #A5E272 #72DDE2
split-complementary
#AF72E2 #DDE272 #72E277
monochromatic
#7325B4 #923FD8 #AF72E2 #CCA5EC #E9D8F7

Accessibility & contrast

On white

3.32
#AF72E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#AF72E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72E2
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72E2#FFFFFF#000000##000000
##AF72E21.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#538BE6
Deuteranopia (green-blind)
#658EDF
Tritanopia (blue-blind)
#A885A0
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #af72e2;
/* rgb */ color: rgb(175, 114, 226);
/* oklch */ color: oklch(66.2% 0.170 307.5);
Tailwind
colors: {
  custom: {
    50: '#c99ceb',
    500: '#af72e2',
    950: '#000000',
  },
}
SCSS
$custom: #af72e2;
$custom-light: #c99ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#af72e2",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 226
  },
  "hsl": {
    "h": 272.679,
    "s": 65.882,
    "l": 66.667
  },
  "oklch": {
    "l": 0.66199,
    "c": 0.16959,
    "h": 307.5
  },
  "luminance": 0.2664
}

Semantic roles & 50–950 ramp

primary
#AF72E2
secondary
#D6EAC6
accent
#CE186B
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF72E2

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

Preview Lab → · Contrast checker → · Palette generator →

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