#AF72F5#AF72F5

#AF72F5 is a light, vivid violet. Relative luminance 0.277; OKLCH L 67.3% C 0.192 H 303.1°. Best body text is #000000 at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#AF72F5
RGBrgb(175, 114, 245)
HSLhsl(268, 87%, 70%)
HSVhsv(268, 53%, 96%)
CMYKcmyk(28.6%, 53.5%, 0%, 3.9%)
CIE-LABlab(59.65, 49.14, -56.98)
CIE-LCHlch(59.65, 75.25, 310.77°)
OKLaboklab(67.28% 0.1048 -0.1606)
OKLCHoklch(67.28% 0.192 303.1)
XYZxyz(40.1742, 27.7412, 89.6066)
Luminance0.2774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72F5 #B8F572
analogous
#7276F5 #AF72F5 #F172F5
triadic
#AF72F5 #F5AF72 #72F5AF
tetradic
#AF72F5 #F57276 #B8F572 #72F5F1
square
#AF72F5 #F57276 #B8F572 #72F5F1
split-complementary
#AF72F5 #F5F172 #76F572
monochromatic
#6F10DD #8F39F1 #AF72F5 #CFABF9 #EFE2FD

Accessibility & contrast

On white

3.21
#AF72F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.55
#AF72F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72F5
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72F5#FFFFFF#000000##000000
##AF72F51.003.216.556.55
#FFFFFF3.211.0021.0021.00
#0000006.5521.001.001.00
##0000006.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#438EF9
Deuteranopia (green-blind)
#568FF2
Tritanopia (blue-blind)
#A28BA9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af72f5;
/* rgb */ color: rgb(175, 114, 245);
/* oklch */ color: oklch(67.3% 0.192 303.1);
Tailwind
colors: {
  custom: {
    50: '#ca9cf9',
    500: '#af72f5',
    950: '#000000',
  },
}
SCSS
$custom: #af72f5;
$custom-light: #ca9cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#af72f5",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 245
  },
  "hsl": {
    "h": 267.939,
    "s": 86.755,
    "l": 70.392
  },
  "oklch": {
    "l": 0.67279,
    "c": 0.19179,
    "h": 303.1
  },
  "luminance": 0.27741
}

Semantic roles & 50–950 ramp

primary
#AF72F5
secondary
#E3F3CF
accent
#E3027A
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF72F5

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

Preview Lab → · Contrast checker → · Palette generator →

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