#AF72EB#AF72EB

#AF72EB is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.7% C 0.180 H 305.3°. Best body text is #000000 at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#AF72EB
RGBrgb(175, 114, 235)
HSLhsl(270, 75%, 68%)
HSVhsv(270, 51%, 92%)
CMYKcmyk(25.5%, 51.5%, 0%, 7.8%)
CIE-LABlab(59.11, 46.80, -52.30)
CIE-LCHlch(59.11, 70.19, 311.82°)
OKLaboklab(66.7% 0.1042 -0.1469)
OKLCHoklch(66.7% 0.18 305.3)
XYZxyz(38.6887, 27.1470, 81.7829)
Luminance0.2715 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72EB #AEEB72
analogous
#7272EB #AF72EB #EB72EA
triadic
#AF72EB #EBAF72 #72EBAF
tetradic
#AF72EB #EB7272 #AEEB72 #72EAEB
square
#AF72EB #EB7272 #AEEB72 #72EAEB
split-complementary
#AF72EB #EAEB72 #72EB72
monochromatic
#721CC6 #913CE3 #AF72EB #CDA8F3 #ECDDFA

Accessibility & contrast

On white

3.27
#AF72EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.43
#AF72EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72EB
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72EB#FFFFFF#000000##000000
##AF72EB1.003.276.436.43
#FFFFFF3.271.0021.0021.00
#0000006.4321.001.001.00
##0000006.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8CEF
Deuteranopia (green-blind)
#5E8FE8
Tritanopia (blue-blind)
#A588A4
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #af72eb;
/* rgb */ color: rgb(175, 114, 235);
/* oklch */ color: oklch(66.7% 0.180 305.3);
Tailwind
colors: {
  custom: {
    50: '#ca9cf2',
    500: '#af72eb',
    950: '#000000',
  },
}
SCSS
$custom: #af72eb;
$custom-light: #ca9cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#af72eb",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 235
  },
  "hsl": {
    "h": 270.248,
    "s": 75.155,
    "l": 68.431
  },
  "oklch": {
    "l": 0.66701,
    "c": 0.18011,
    "h": 305.3
  },
  "luminance": 0.27147
}

Semantic roles & 50–950 ramp

primary
#AF72EB
secondary
#DCEFCA
accent
#D70E72
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#130E17
muted
#827E85

Preview Lab

Preview with #AF72EB

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

Preview Lab → · Contrast checker → · Palette generator →

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