#AF72E7#AF72E7

#AF72E7 is a light, vivid violet. Relative luminance 0.269; OKLCH L 66.5% C 0.175 H 306.3°. Best body text is #000000 at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#AF72E7
RGBrgb(175, 114, 231)
HSLhsl(271, 71%, 68%)
HSVhsv(271, 51%, 91%)
CMYKcmyk(24.2%, 50.6%, 0%, 9.4%)
CIE-LABlab(58.90, 45.88, -50.41)
CIE-LCHlch(58.90, 68.16, 312.31°)
OKLaboklab(66.47% 0.1038 -0.1414)
OKLCHoklch(66.47% 0.175 306.3)
XYZxyz(38.1173, 26.9184, 78.7735)
Luminance0.2692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72E7 #AAE772
analogous
#7472E7 #AF72E7 #E772E4
triadic
#AF72E7 #E7AF72 #72E7AF
tetradic
#AF72E7 #E77472 #AAE772 #72E4E7
square
#AF72E7 #E77472 #AAE772 #72E4E7
split-complementary
#AF72E7 #E4E772 #72E774
monochromatic
#7320BE #913EDE #AF72E7 #CDA6F0 #EADBF9

Accessibility & contrast

On white

3.29
#AF72E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.38
#AF72E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72E7
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72E7#FFFFFF#000000##000000
##AF72E71.003.296.386.38
#FFFFFF3.291.0021.0021.00
#0000006.3821.001.001.00
##0000006.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8CEB
Deuteranopia (green-blind)
#618EE4
Tritanopia (blue-blind)
#A687A2
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af72e7;
/* rgb */ color: rgb(175, 114, 231);
/* oklch */ color: oklch(66.5% 0.175 306.3);
Tailwind
colors: {
  custom: {
    50: '#c99cef',
    500: '#af72e7',
    950: '#000000',
  },
}
SCSS
$custom: #af72e7;
$custom-light: #c99cef;
$custom-dark: #000000;
JSON
{
  "hex": "#af72e7",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 231
  },
  "hsl": {
    "h": 271.282,
    "s": 70.909,
    "l": 67.647
  },
  "oklch": {
    "l": 0.66475,
    "c": 0.17543,
    "h": 306.3
  },
  "luminance": 0.26918
}

Semantic roles & 50–950 ramp

primary
#AF72E7
secondary
#DAEDC8
accent
#D3136F
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E16
muted
#827E84

Preview Lab

Preview with #AF72E7

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

Preview Lab → · Contrast checker → · Palette generator →

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