#AF72F8#AF72F8

#AF72F8 is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.5% C 0.195 H 302.5°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#AF72F8
RGBrgb(175, 114, 248)
HSLhsl(267, 91%, 71%)
HSVhsv(267, 54%, 97%)
CMYKcmyk(29.4%, 54%, 0%, 2.7%)
CIE-LABlab(59.82, 49.85, -58.38)
CIE-LCHlch(59.82, 76.77, 310.50°)
OKLaboklab(67.46% 0.1049 -0.1647)
OKLCHoklch(67.46% 0.195 302.5)
XYZxyz(40.6359, 27.9259, 92.0382)
Luminance0.2793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72F8 #BBF872
analogous
#7278F8 #AF72F8 #F272F8
triadic
#AF72F8 #F8AF72 #72F8AF
tetradic
#AF72F8 #F87278 #BBF872 #72F8F2
square
#AF72F8 #F87278 #BBF872 #72F8F2
split-complementary
#AF72F8 #F8F272 #78F872
monochromatic
#6E0BE4 #8E38F5 #AF72F8 #D0ACFB #EEE2FE

Accessibility & contrast

On white

3.19
#AF72F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#AF72F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72F8
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72F8#FFFFFF#000000##000000
##AF72F81.003.196.596.59
#FFFFFF3.191.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F8FFC
Deuteranopia (green-blind)
#5490F5
Tritanopia (blue-blind)
#A18CAA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af72f8;
/* rgb */ color: rgb(175, 114, 248);
/* oklch */ color: oklch(67.5% 0.195 302.5);
Tailwind
colors: {
  custom: {
    50: '#ca9cfb',
    500: '#af72f8',
    950: '#000000',
  },
}
SCSS
$custom: #af72f8;
$custom-light: #ca9cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#af72f8",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 248
  },
  "hsl": {
    "h": 267.313,
    "s": 90.541,
    "l": 70.98
  },
  "oklch": {
    "l": 0.67456,
    "c": 0.19528,
    "h": 302.5
  },
  "luminance": 0.27926
}

Semantic roles & 50–950 ramp

primary
#AF72F8
secondary
#E4F5D1
accent
#E6007D
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF72F8

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

Preview Lab → · Contrast checker → · Palette generator →

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