#AF2DD4#AF2DD4

#AF2DD4 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 57.2% C 0.246 H 317.2°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#AF2DD4
RGBrgb(175, 45, 212)
HSLhsl(287, 66%, 50%)
HSVhsv(287, 79%, 83%)
CMYKcmyk(17.5%, 78.8%, 0%, 16.9%)
CIE-LABlab(46.64, 72.32, -59.28)
CIE-LCHlch(46.64, 93.51, 320.66°)
OKLaboklab(57.24% 0.1805 -0.167)
OKLCHoklch(57.24% 0.246 317.2)
XYZxyz(30.4995, 15.7456, 63.7072)
Luminance0.1574 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DD4 #52D42D
analogous
#5C2DD4 #AF2DD4 #D42DA5
triadic
#AF2DD4 #D4AF2D #2DD4AF
tetradic
#AF2DD4 #D45C2D #52D42D #2DA5D4
square
#AF2DD4 #D45C2D #52D42D #2DA5D4
split-complementary
#AF2DD4 #A5D42D #2DD45C
monochromatic
#5C1770 #8621A3 #AF2DD4 #C260DE #D693E9

Accessibility & contrast

On white

5.06
#AF2DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#AF2DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DD4
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DD4#FFFFFF#000000##FFFFFF
##AF2DD41.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#3072D0
Tritanopia (blue-blind)
#AD5481
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af2dd4;
/* rgb */ color: rgb(175, 45, 212);
/* oklch */ color: oklch(57.2% 0.246 317.2);
Tailwind
colors: {
  custom: {
    50: '#cc76e2',
    500: '#af2dd4',
    950: '#000000',
  },
}
SCSS
$custom: #af2dd4;
$custom-light: #cc76e2;
$custom-dark: #000000;
JSON
{
  "hex": "#af2dd4",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 212
  },
  "hsl": {
    "h": 286.707,
    "s": 66.008,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5724,
    "c": 0.24596,
    "h": 317.2
  },
  "luminance": 0.15744
}

Semantic roles & 50–950 ramp

primary
#AF2DD4
secondary
#9AD489
accent
#E93F65
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF2DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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