#AF72EE#AF72EE

#AF72EE is a light, vivid violet. Relative luminance 0.273; OKLCH L 66.9% C 0.184 H 304.6°. Best body text is #000000 at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#AF72EE
RGBrgb(175, 114, 238)
HSLhsl(270, 78%, 69%)
HSVhsv(270, 52%, 93%)
CMYKcmyk(26.5%, 52.1%, 0%, 6.7%)
CIE-LABlab(59.27, 47.50, -53.71)
CIE-LCHlch(59.27, 71.70, 311.49°)
OKLaboklab(66.87% 0.1044 -0.1511)
OKLCHoklch(66.87% 0.184 304.6)
XYZxyz(39.1258, 27.3218, 84.0848)
Luminance0.2732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72EE #B1EE72
analogous
#7273EE #AF72EE #ED72EE
triadic
#AF72EE #EEAF72 #72EEAF
tetradic
#AF72EE #EE7273 #B1EE72 #72EEED
square
#AF72EE #EE7273 #B1EE72 #72EEED
split-complementary
#AF72EE #EEED72 #73EE72
monochromatic
#7119CD #903BE7 #AF72EE #CEA9F5 #EDDFFB

Accessibility & contrast

On white

3.25
#AF72EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.46
#AF72EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72EE
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72EE#FFFFFF#000000##000000
##AF72EE1.003.256.466.46
#FFFFFF3.251.0021.0021.00
#0000006.4621.001.001.00
##0000006.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#498DF2
Deuteranopia (green-blind)
#5C8FEB
Tritanopia (blue-blind)
#A489A5
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af72ee;
/* rgb */ color: rgb(175, 114, 238);
/* oklch */ color: oklch(66.9% 0.184 304.6);
Tailwind
colors: {
  custom: {
    50: '#ca9cf4',
    500: '#af72ee',
    950: '#000000',
  },
}
SCSS
$custom: #af72ee;
$custom-light: #ca9cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#af72ee",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 238
  },
  "hsl": {
    "h": 269.516,
    "s": 78.481,
    "l": 69.02
  },
  "oklch": {
    "l": 0.66872,
    "c": 0.18361,
    "h": 304.6
  },
  "luminance": 0.27322
}

Semantic roles & 50–950 ramp

primary
#AF72EE
secondary
#DEF0CC
accent
#DB0B74
background
#FCF9FE
surface
#F9F2FD
border
#D2CCD5
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF72EE

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

Preview Lab → · Contrast checker → · Palette generator →

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