#AF40CE#AF40CE

#AF40CE is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.5% C 0.221 H 318.0°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#AF40CE
RGBrgb(175, 64, 206)
HSLhsl(287, 59%, 53%)
HSVhsv(287, 69%, 81%)
CMYKcmyk(15%, 68.9%, 0%, 19.2%)
CIE-LABlab(48.56, 64.61, -52.74)
CIE-LCHlch(48.56, 83.40, 320.77°)
OKLaboklab(58.48% 0.1642 -0.148)
OKLCHoklch(58.48% 0.221 318)
XYZxyz(30.6516, 17.2383, 60.0933)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF40CE #5FCE40
analogous
#6840CE #AF40CE #CE40A6
triadic
#AF40CE #CEAF40 #40CEAF
tetradic
#AF40CE #CE6840 #5FCE40 #40A6CE
square
#AF40CE #CE6840 #5FCE40 #40A6CE
split-complementary
#AF40CE #A6CE40 #40CE68
monochromatic
#621E75 #8B2BA6 #AF40CE #C371DA #D8A1E7

Accessibility & contrast

On white

4.72
#AF40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#AF40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF40CE
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF40CE#FFFFFF#000000##FFFFFF
##AF40CE1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#4677CB
Tritanopia (blue-blind)
#AE5B82
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af40ce;
/* rgb */ color: rgb(175, 64, 206);
/* oklch */ color: oklch(58.5% 0.221 318.0);
Tailwind
colors: {
  custom: {
    50: '#cb7ede',
    500: '#af40ce',
    950: '#000000',
  },
}
SCSS
$custom: #af40ce;
$custom-light: #cb7ede;
$custom-dark: #000000;
JSON
{
  "hex": "#af40ce",
  "rgb": {
    "r": 175,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 286.901,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.58481,
    "c": 0.22103,
    "h": 318
  },
  "luminance": 0.17237
}

Semantic roles & 50–950 ramp

primary
#AF40CE
secondary
#A4D496
accent
#E24568
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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