#AF2DD3#AF2DD3

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

Color values

HEX#AF2DD3
RGBrgb(175, 45, 211)
HSLhsl(287, 65%, 50%)
HSVhsv(287, 79%, 83%)
CMYKcmyk(17.1%, 78.7%, 0%, 17.3%)
CIE-LABlab(46.57, 72.13, -58.81)
CIE-LCHlch(46.57, 93.07, 320.81°)
OKLaboklab(57.17% 0.1807 -0.1656)
OKLCHoklch(57.17% 0.245 317.5)
XYZxyz(30.3737, 15.6953, 63.0449)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DD3 #51D32D
analogous
#5C2DD3 #AF2DD3 #D32DA4
triadic
#AF2DD3 #D3AF2D #2DD3AF
tetradic
#AF2DD3 #D35C2D #51D32D #2DA4D3
square
#AF2DD3 #D35C2D #51D32D #2DA4D3
split-complementary
#AF2DD3 #A4D32D #2DD35C
monochromatic
#5C176E #8522A1 #AF2DD3 #C260DE #D692E8

Accessibility & contrast

On white

5.07
#AF2DD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#AF2DD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DD3
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DD3#FFFFFF#000000##FFFFFF
##AF2DD31.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D7
Deuteranopia (green-blind)
#3272CF
Tritanopia (blue-blind)
#AD5381
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af2dd3;
/* rgb */ color: rgb(175, 45, 211);
/* oklch */ color: oklch(57.2% 0.245 317.5);
Tailwind
colors: {
  custom: {
    50: '#cc76e1',
    500: '#af2dd3',
    950: '#000000',
  },
}
SCSS
$custom: #af2dd3;
$custom-light: #cc76e1;
$custom-dark: #000000;
JSON
{
  "hex": "#af2dd3",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 211
  },
  "hsl": {
    "h": 286.988,
    "s": 65.354,
    "l": 50.196
  },
  "oklch": {
    "l": 0.57172,
    "c": 0.24514,
    "h": 317.5
  },
  "luminance": 0.15694
}

Semantic roles & 50–950 ramp

primary
#AF2DD3
secondary
#99D389
accent
#E83F64
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF2DD3

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

Preview Lab → · Contrast checker → · Palette generator →

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