#AF2DC9#AF2DC9

#AF2DC9 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.5% C 0.237 H 320.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#AF2DC9
RGBrgb(175, 45, 201)
HSLhsl(290, 63%, 48%)
HSVhsv(290, 78%, 79%)
CMYKcmyk(12.9%, 77.6%, 0%, 21.2%)
CIE-LABlab(45.92, 70.33, -54.10)
CIE-LCHlch(45.92, 88.73, 322.43°)
OKLaboklab(56.5% 0.1821 -0.1518)
OKLCHoklch(56.5% 0.237 320.2)
XYZxyz(29.1589, 15.2093, 56.6468)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DC9 #47C92D
analogous
#612DC9 #AF2DC9 #C92D95
triadic
#AF2DC9 #C9AF2D #2DC9AF
tetradic
#AF2DC9 #C9612D #47C92D #2D95C9
square
#AF2DC9 #C9612D #47C92D #2D95C9
split-complementary
#AF2DC9 #95C92D #2DC961
monochromatic
#581765 #832297 #AF2DC9 #C459DA #D68BE5

Accessibility & contrast

On white

5.20
#AF2DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#AF2DC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DC9
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DC9#FFFFFF#000000##FFFFFF
##AF2DC91.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CD
Deuteranopia (green-blind)
#3D71C6
Tritanopia (blue-blind)
#B04E7B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af2dc9;
/* rgb */ color: rgb(175, 45, 201);
/* oklch */ color: oklch(56.5% 0.237 320.2);
Tailwind
colors: {
  custom: {
    50: '#cb75da',
    500: '#af2dc9',
    950: '#000000',
  },
}
SCSS
$custom: #af2dc9;
$custom-light: #cb75da;
$custom-dark: #000000;
JSON
{
  "hex": "#af2dc9",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 290,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56504,
    "c": 0.23708,
    "h": 320.2
  },
  "luminance": 0.15208
}

Semantic roles & 50–950 ramp

primary
#AF2DC9
secondary
#8FCF83
accent
#E6415D
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140915
muted
#837B83

Preview Lab

Preview with #AF2DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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