#AF2ACF#AF2ACF

#AF2ACF is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.7% C 0.244 H 318.6°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#AF2ACF
RGBrgb(175, 42, 207)
HSLhsl(288, 66%, 49%)
HSVhsv(288, 80%, 81%)
CMYKcmyk(15.5%, 79.7%, 0%, 18.8%)
CIE-LABlab(46.01, 72.27, -57.42)
CIE-LCHlch(46.01, 92.30, 321.53°)
OKLaboklab(56.69% 0.1835 -0.1615)
OKLCHoklch(56.69% 0.245 318.6)
XYZxyz(29.7681, 15.2763, 60.4000)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2ACF #4ACF2A
analogous
#5D2ACF #AF2ACF #CF2A9D
triadic
#AF2ACF #CFAF2A #2ACFAF
tetradic
#AF2ACF #CF5D2A #4ACF2A #2A9DCF
square
#AF2ACF #CF5D2A #4ACF2A #2A9DCF
split-complementary
#AF2ACF #9DCF2A #2ACF5D
monochromatic
#591569 #84209C #AF2ACF #C459DD #D68CE8

Accessibility & contrast

On white

5.18
#AF2ACF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#AF2ACF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2ACF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2ACF#FFFFFF#000000##FFFFFF
##AF2ACF1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D3
Deuteranopia (green-blind)
#3571CB
Tritanopia (blue-blind)
#AE507E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af2acf;
/* rgb */ color: rgb(175, 42, 207);
/* oklch */ color: oklch(56.7% 0.244 318.6);
Tailwind
colors: {
  custom: {
    50: '#cc74de',
    500: '#af2acf',
    950: '#000000',
  },
}
SCSS
$custom: #af2acf;
$custom-light: #cc74de;
$custom-dark: #000000;
JSON
{
  "hex": "#af2acf",
  "rgb": {
    "r": 175,
    "g": 42,
    "b": 207
  },
  "hsl": {
    "h": 288.364,
    "s": 66.265,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56692,
    "c": 0.2445,
    "h": 318.6
  },
  "luminance": 0.15275
}

Semantic roles & 50–950 ramp

primary
#AF2ACF
secondary
#92D283
accent
#E93F60
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140915
muted
#837B83

Preview Lab

Preview with #AF2ACF

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

Preview Lab → · Contrast checker → · Palette generator →

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