#AF2DDC#AF2DDC

#AF2DDC is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.8% C 0.252 H 315.2°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#AF2DDC
RGBrgb(175, 45, 220)
HSLhsl(285, 71%, 52%)
HSVhsv(285, 80%, 86%)
CMYKcmyk(20.5%, 79.5%, 0%, 13.7%)
CIE-LABlab(47.18, 73.80, -62.98)
CIE-LCHlch(47.18, 97.02, 319.52°)
OKLaboklab(57.79% 0.1792 -0.1779)
OKLCHoklch(57.79% 0.252 315.2)
XYZxyz(31.5337, 16.1592, 69.1542)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DDC #5ADC2D
analogous
#572DDC #AF2DDC #DC2DB2
triadic
#AF2DDC #DCAF2D #2DDCAF
tetradic
#AF2DDC #DC572D #5ADC2D #2DB2DC
square
#AF2DDC #DC572D #5ADC2D #2DB2DC
split-complementary
#AF2DDC #B2DC2D #2DDC57
monochromatic
#60147A #891DAF #AF2DDC #C361E5 #D796ED

Accessibility & contrast

On white

4.96
#AF2DDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#AF2DDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DDC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DDC#FFFFFF#000000##FFFFFF
##AF2DDC1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E1
Deuteranopia (green-blind)
#2373D8
Tritanopia (blue-blind)
#AB5886
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af2ddc;
/* rgb */ color: rgb(175, 45, 220);
/* oklch */ color: oklch(57.8% 0.252 315.2);
Tailwind
colors: {
  custom: {
    50: '#cc76e8',
    500: '#af2ddc',
    950: '#000000',
  },
}
SCSS
$custom: #af2ddc;
$custom-light: #cc76e8;
$custom-dark: #000000;
JSON
{
  "hex": "#af2ddc",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 220
  },
  "hsl": {
    "h": 284.571,
    "s": 71.429,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57794,
    "c": 0.25248,
    "h": 315.2
  },
  "luminance": 0.16158
}

Semantic roles & 50–950 ramp

primary
#AF2DDC
secondary
#A0D98C
accent
#EE3A68
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF2DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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