#AF72F9#AF72F9

#AF72F9 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.5% C 0.196 H 302.3°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#AF72F9
RGBrgb(175, 114, 249)
HSLhsl(267, 92%, 71%)
HSVhsv(267, 54%, 98%)
CMYKcmyk(29.7%, 54.2%, 0%, 2.4%)
CIE-LABlab(59.88, 50.09, -58.84)
CIE-LCHlch(59.88, 77.27, 310.41°)
OKLaboklab(67.52% 0.1049 -0.1661)
OKLCHoklch(67.52% 0.196 302.3)
XYZxyz(40.7915, 27.9881, 92.8574)
Luminance0.2799 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72F9 #BCF972
analogous
#7278F9 #AF72F9 #F272F9
triadic
#AF72F9 #F9AF72 #72F9AF
tetradic
#AF72F9 #F97278 #BCF972 #72F9F2
square
#AF72F9 #F97278 #BCF972 #72F9F2
split-complementary
#AF72F9 #F9F272 #78F972
monochromatic
#6E0AE7 #8E37F7 #AF72F9 #D0ADFB #EEE2FE

Accessibility & contrast

On white

3.18
#AF72F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#AF72F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72F9
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72F9#FFFFFF#000000##000000
##AF72F91.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E8FFE
Deuteranopia (green-blind)
#5390F6
Tritanopia (blue-blind)
#A18CAB
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af72f9;
/* rgb */ color: rgb(175, 114, 249);
/* oklch */ color: oklch(67.5% 0.196 302.3);
Tailwind
colors: {
  custom: {
    50: '#ca9cfc',
    500: '#af72f9',
    950: '#000000',
  },
}
SCSS
$custom: #af72f9;
$custom-light: #ca9cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#af72f9",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 249
  },
  "hsl": {
    "h": 267.111,
    "s": 91.837,
    "l": 71.176
  },
  "oklch": {
    "l": 0.67516,
    "c": 0.19645,
    "h": 302.3
  },
  "luminance": 0.27988
}

Semantic roles & 50–950 ramp

primary
#AF72F9
secondary
#E5F5D2
accent
#E6007E
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF72F9

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

Preview Lab → · Contrast checker → · Palette generator →

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