#AF45D2#AF45D2

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

Color values

HEX#AF45D2
RGBrgb(175, 69, 210)
HSLhsl(285, 61%, 55%)
HSVhsv(285, 67%, 82%)
CMYKcmyk(16.7%, 67.1%, 0%, 17.6%)
CIE-LABlab(49.53, 63.35, -53.49)
CIE-LCHlch(49.53, 82.91, 319.82°)
OKLaboklab(59.25% 0.1587 -0.1502)
OKLCHoklch(59.25% 0.218 316.6)
XYZxyz(31.4384, 18.0246, 62.7833)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF45D2 #68D245
analogous
#6845D2 #AF45D2 #D245AF
triadic
#AF45D2 #D2AF45 #45D2AF
tetradic
#AF45D2 #D26845 #68D245 #45AFD2
square
#AF45D2 #D26845 #68D245 #45AFD2
split-complementary
#AF45D2 #AFD245 #45D268
monochromatic
#661F7E #8E2AAF #AF45D2 #C476DE #D9A8EA

Accessibility & contrast

On white

4.56
#AF45D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#AF45D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #AF45D2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF45D2#FFFFFF#000000##000000
##AF45D21.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#4679CF
Tritanopia (blue-blind)
#AD6086
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #af45d2;
/* rgb */ color: rgb(175, 69, 210);
/* oklch */ color: oklch(59.3% 0.218 316.6);
Tailwind
colors: {
  custom: {
    50: '#cb81e0',
    500: '#af45d2',
    950: '#000000',
  },
}
SCSS
$custom: #af45d2;
$custom-light: #cb81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#af45d2",
  "rgb": {
    "r": 175,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 285.106,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.59251,
    "c": 0.21849,
    "h": 316.6
  },
  "luminance": 0.18023
}

Semantic roles & 50–950 ramp

primary
#AF45D2
secondary
#AAD79C
accent
#E4446B
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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