#AF72F1#AF72F1

#AF72F1 is a light, vivid violet. Relative luminance 0.275; OKLCH L 67.0% C 0.187 H 304.0°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#AF72F1
RGBrgb(175, 114, 241)
HSLhsl(269, 82%, 70%)
HSVhsv(269, 53%, 95%)
CMYKcmyk(27.4%, 52.7%, 0%, 5.5%)
CIE-LABlab(59.43, 48.20, -55.12)
CIE-LCHlch(59.43, 73.22, 311.17°)
OKLaboklab(67.05% 0.1046 -0.1552)
OKLCHoklch(67.05% 0.187 304)
XYZxyz(39.5702, 27.4996, 86.4253)
Luminance0.2750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF72F1 #B4F172
analogous
#7275F1 #AF72F1 #EE72F1
triadic
#AF72F1 #F1AF72 #72F1AF
tetradic
#AF72F1 #F17275 #B4F172 #72F1EE
square
#AF72F1 #F17275 #B4F172 #72F1EE
split-complementary
#AF72F1 #F1EE72 #75F172
monochromatic
#7115D4 #8F3AEB #AF72F1 #CFAAF7 #EEE1FC

Accessibility & contrast

On white

3.23
#AF72F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#AF72F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF72F1
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF72F1#FFFFFF#000000##000000
##AF72F11.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#478EF5
Deuteranopia (green-blind)
#5A8FEE
Tritanopia (blue-blind)
#A38AA7
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #af72f1;
/* rgb */ color: rgb(175, 114, 241);
/* oklch */ color: oklch(67.0% 0.187 304.0);
Tailwind
colors: {
  custom: {
    50: '#ca9cf6',
    500: '#af72f1',
    950: '#000000',
  },
}
SCSS
$custom: #af72f1;
$custom-light: #ca9cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#af72f1",
  "rgb": {
    "r": 175,
    "g": 114,
    "b": 241
  },
  "hsl": {
    "h": 268.819,
    "s": 81.935,
    "l": 69.608
  },
  "oklch": {
    "l": 0.67045,
    "c": 0.18711,
    "h": 304
  },
  "luminance": 0.27499
}

Semantic roles & 50–950 ramp

primary
#AF72F1
secondary
#E0F2CD
accent
#DE0777
background
#FCF9FF
surface
#F9F2FF
border
#D2CCD7
text
#140E17
muted
#827E85

Preview Lab

Preview with #AF72F1

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

Preview Lab → · Contrast checker → · Palette generator →

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