#AF72F7#AF72F7

#AF72F7 is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.4% C 0.194 H 302.7°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#AF72F7
RGBrgb(175, 114, 247)
HSLhsl(268, 89%, 71%)
HSVhsv(268, 54%, 97%)
CMYKcmyk(29.1%, 53.8%, 0%, 3.1%)
CIE-LABlab(59.77, 49.61, -57.91)
CIE-LCHlch(59.77, 76.26, 310.59°)
OKLaboklab(67.4% 0.1049 -0.1634)
OKLCHoklch(67.4% 0.194 302.7)
XYZxyz(40.4812, 27.8640, 91.2233)
Luminance0.2786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72F7 #BAF772
analogous
#7277F7 #AF72F7 #F272F7
triadic
#AF72F7 #F7AF72 #72F7AF
tetradic
#AF72F7 #F77277 #BAF772 #72F7F2
square
#AF72F7 #F77277 #BAF772 #72F7F2
split-complementary
#AF72F7 #F7F272 #77F772
monochromatic
#6E0DE2 #8E38F4 #AF72F7 #D0ACFA #EFE2FD

Accessibility & contrast

On white

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

On black

6.57
#AF72F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72F7
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72F7#FFFFFF#000000##000000
##AF72F71.003.196.576.57
#FFFFFF3.191.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#408FFB
Deuteranopia (green-blind)
#5590F4
Tritanopia (blue-blind)
#A28CAA
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af72f7;
/* rgb */ color: rgb(175, 114, 247);
/* oklch */ color: oklch(67.4% 0.194 302.7);
Tailwind
colors: {
  custom: {
    50: '#ca9cfa',
    500: '#af72f7',
    950: '#000000',
  },
}
SCSS
$custom: #af72f7;
$custom-light: #ca9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#af72f7",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 247
  },
  "hsl": {
    "h": 267.519,
    "s": 89.262,
    "l": 70.784
  },
  "oklch": {
    "l": 0.67397,
    "c": 0.19412,
    "h": 302.7
  },
  "luminance": 0.27864
}

Semantic roles & 50–950 ramp

primary
#AF72F7
secondary
#E4F4D1
accent
#E6007C
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF72F7

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

Preview Lab → · Contrast checker → · Palette generator →

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