#AF2DCD#AF2DCD

#AF2DCD is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.8% C 0.240 H 319.1°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF2DCD
RGBrgb(175, 45, 205)
HSLhsl(289, 64%, 49%)
HSVhsv(289, 78%, 80%)
CMYKcmyk(14.6%, 78%, 0%, 19.6%)
CIE-LABlab(46.18, 71.04, -55.99)
CIE-LCHlch(46.18, 90.46, 321.76°)
OKLaboklab(56.77% 0.1816 -0.1574)
OKLCHoklch(56.77% 0.24 319.1)
XYZxyz(29.6356, 15.4000, 59.1572)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DCD #4BCD2D
analogous
#5F2DCD #AF2DCD #CD2D9B
triadic
#AF2DCD #CDAF2D #2DCDAF
tetradic
#AF2DCD #CD5F2D #4BCD2D #2D9BCD
square
#AF2DCD #CD5F2D #4BCD2D #2D9BCD
split-complementary
#AF2DCD #9BCD2D #2DCD5F
monochromatic
#591769 #84229B #AF2DCD #C35CDB #D68EE6

Accessibility & contrast

On white

5.15
#AF2DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AF2DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DCD
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DCD#FFFFFF#000000##FFFFFF
##AF2DCD1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D1
Deuteranopia (green-blind)
#3971CA
Tritanopia (blue-blind)
#AF507D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af2dcd;
/* rgb */ color: rgb(175, 45, 205);
/* oklch */ color: oklch(56.8% 0.240 319.1);
Tailwind
colors: {
  custom: {
    50: '#cb75dd',
    500: '#af2dcd',
    950: '#000000',
  },
}
SCSS
$custom: #af2dcd;
$custom-light: #cb75dd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2dcd",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 205
  },
  "hsl": {
    "h": 288.75,
    "s": 64,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56768,
    "c": 0.24029,
    "h": 319.1
  },
  "luminance": 0.15399
}

Semantic roles & 50–950 ramp

primary
#AF2DCD
secondary
#93D185
accent
#E74160
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140915
muted
#837B83

Preview Lab

Preview with #AF2DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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