#AF45D1#AF45D1

#AF45D1 is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.2% C 0.218 H 316.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#AF45D1
RGBrgb(175, 69, 209)
HSLhsl(285, 60%, 55%)
HSVhsv(285, 67%, 82%)
CMYKcmyk(16.3%, 67%, 0%, 18%)
CIE-LABlab(49.47, 63.15, -53.01)
CIE-LCHlch(49.47, 82.45, 319.99°)
OKLaboklab(59.19% 0.1587 -0.1488)
OKLCHoklch(59.19% 0.218 316.8)
XYZxyz(31.3142, 17.9749, 62.1292)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45D1 #67D145
analogous
#6945D1 #AF45D1 #D145AD
triadic
#AF45D1 #D1AF45 #45D1AF
tetradic
#AF45D1 #D16945 #67D145 #45ADD1
square
#AF45D1 #D16945 #67D145 #45ADD1
split-complementary
#AF45D1 #ADD145 #45D169
monochromatic
#661F7D #8E2BAE #AF45D1 #C476DD #D9A7E9

Accessibility & contrast

On white

4.57
#AF45D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#AF45D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45D1
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45D1#FFFFFF#000000##000000
##AF45D11.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD5
Deuteranopia (green-blind)
#4779CE
Tritanopia (blue-blind)
#AD6086
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af45d1;
/* rgb */ color: rgb(175, 69, 209);
/* oklch */ color: oklch(59.2% 0.218 316.8);
Tailwind
colors: {
  custom: {
    50: '#cb81e0',
    500: '#af45d1',
    950: '#000000',
  },
}
SCSS
$custom: #af45d1;
$custom-light: #cb81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af45d1",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 285.429,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.59189,
    "c": 0.21757,
    "h": 316.8
  },
  "luminance": 0.17974
}

Semantic roles & 50–950 ramp

primary
#AF45D1
secondary
#AAD79B
accent
#E3446B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF45D1

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

Preview Lab → · Contrast checker → · Palette generator →

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