#AF42CE#AF42CE

#AF42CE is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.7% C 0.219 H 317.9°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#AF42CE
RGBrgb(175, 66, 206)
HSLhsl(287, 59%, 53%)
HSVhsv(287, 68%, 81%)
CMYKcmyk(15%, 68%, 0%, 19.2%)
CIE-LABlab(48.84, 63.81, -52.29)
CIE-LCHlch(48.84, 82.49, 320.67°)
OKLaboklab(58.68% 0.1621 -0.1467)
OKLCHoklch(58.68% 0.219 317.9)
XYZxyz(30.7664, 17.4679, 60.1316)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42CE #61CE42
analogous
#6942CE #AF42CE #CE42A7
triadic
#AF42CE #CEAF42 #42CEAF
tetradic
#AF42CE #CE6942 #61CE42 #42A7CE
square
#AF42CE #CE6942 #61CE42 #42A7CE
split-complementary
#AF42CE #A7CE42 #42CE69
monochromatic
#631F77 #8C2BA7 #AF42CE #C473DB #D8A3E7

Accessibility & contrast

On white

4.67
#AF42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#AF42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42CE
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42CE#FFFFFF#000000##FFFFFF
##AF42CE1.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD2
Deuteranopia (green-blind)
#4777CB
Tritanopia (blue-blind)
#AE5C83
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af42ce;
/* rgb */ color: rgb(175, 66, 206);
/* oklch */ color: oklch(58.7% 0.219 317.9);
Tailwind
colors: {
  custom: {
    50: '#cb7fde',
    500: '#af42ce',
    950: '#000000',
  },
}
SCSS
$custom: #af42ce;
$custom-light: #cb7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#af42ce",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 286.714,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58685,
    "c": 0.21859,
    "h": 317.9
  },
  "luminance": 0.17467
}

Semantic roles & 50–950 ramp

primary
#AF42CE
secondary
#A5D498
accent
#E24668
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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