#AF72EF#AF72EF

#AF72EF is a light, vivid violet. Relative luminance 0.274; OKLCH L 66.9% C 0.185 H 304.4°. Best body text is #000000 at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#AF72EF
RGBrgb(175, 114, 239)
HSLhsl(269, 80%, 69%)
HSVhsv(269, 52%, 94%)
CMYKcmyk(26.8%, 52.3%, 0%, 6.3%)
CIE-LABlab(59.33, 47.73, -54.18)
CIE-LCHlch(59.33, 72.21, 311.38°)
OKLaboklab(66.93% 0.1044 -0.1524)
OKLCHoklch(66.93% 0.185 304.4)
XYZxyz(39.2731, 27.3807, 84.8606)
Luminance0.2738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72EF #B2EF72
analogous
#7274EF #AF72EF #EE72EF
triadic
#AF72EF #EFAF72 #72EFAF
tetradic
#AF72EF #EF7274 #B2EF72 #72EFEE
square
#AF72EF #EF7274 #B2EF72 #72EFEE
split-complementary
#AF72EF #EFEE72 #74EF72
monochromatic
#7118CF #903BE9 #AF72EF #CEA9F5 #EDE0FB

Accessibility & contrast

On white

3.24
#AF72EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.48
#AF72EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72EF
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72EF#FFFFFF#000000##000000
##AF72EF1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#488DF3
Deuteranopia (green-blind)
#5B8FEC
Tritanopia (blue-blind)
#A489A6
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af72ef;
/* rgb */ color: rgb(175, 114, 239);
/* oklch */ color: oklch(66.9% 0.185 304.4);
Tailwind
colors: {
  custom: {
    50: '#ca9cf5',
    500: '#af72ef',
    950: '#000000',
  },
}
SCSS
$custom: #af72ef;
$custom-light: #ca9cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#af72ef",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 239
  },
  "hsl": {
    "h": 269.28,
    "s": 79.618,
    "l": 69.216
  },
  "oklch": {
    "l": 0.66929,
    "c": 0.18478,
    "h": 304.4
  },
  "luminance": 0.27381
}

Semantic roles & 50–950 ramp

primary
#AF72EF
secondary
#DFF1CC
accent
#DC0A75
background
#FCF9FF
surface
#F9F2FE
border
#D2CCD6
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF72EF

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

Preview Lab → · Contrast checker → · Palette generator →

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