#AF72F6#AF72F6

#AF72F6 is a light, vivid violet. Relative luminance 0.278; OKLCH L 67.3% C 0.193 H 302.9°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#AF72F6
RGBrgb(175, 114, 246)
HSLhsl(268, 88%, 71%)
HSVhsv(268, 54%, 96%)
CMYKcmyk(28.9%, 53.7%, 0%, 3.5%)
CIE-LABlab(59.71, 49.38, -57.45)
CIE-LCHlch(59.71, 75.75, 310.68°)
OKLaboklab(67.34% 0.1048 -0.162)
OKLCHoklch(67.34% 0.193 302.9)
XYZxyz(40.3273, 27.8024, 90.4128)
Luminance0.2780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72F6 #B9F672
analogous
#7277F6 #AF72F6 #F172F6
triadic
#AF72F6 #F6AF72 #72F6AF
tetradic
#AF72F6 #F67277 #B9F672 #72F6F1
square
#AF72F6 #F67277 #B9F672 #72F6F1
split-complementary
#AF72F6 #F6F172 #77F672
monochromatic
#6F0EDF #8E38F2 #AF72F6 #D0ACFA #EFE2FD

Accessibility & contrast

On white

3.20
#AF72F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.56
#AF72F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72F6
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72F6#FFFFFF#000000##000000
##AF72F61.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#418FFA
Deuteranopia (green-blind)
#5690F3
Tritanopia (blue-blind)
#A28BA9
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #af72f6;
/* rgb */ color: rgb(175, 114, 246);
/* oklch */ color: oklch(67.3% 0.193 302.9);
Tailwind
colors: {
  custom: {
    50: '#ca9cfa',
    500: '#af72f6',
    950: '#000000',
  },
}
SCSS
$custom: #af72f6;
$custom-light: #ca9cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#af72f6",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 246
  },
  "hsl": {
    "h": 267.727,
    "s": 88,
    "l": 70.588
  },
  "oklch": {
    "l": 0.67338,
    "c": 0.19295,
    "h": 302.9
  },
  "luminance": 0.27802
}

Semantic roles & 50–950 ramp

primary
#AF72F6
secondary
#E3F4D0
accent
#E5017B
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF72F6

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

Preview Lab → · Contrast checker → · Palette generator →

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