#AF42CF#AF42CF

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

Color values

HEX#AF42CF
RGBrgb(175, 66, 207)
HSLhsl(286, 59%, 54%)
HSVhsv(286, 68%, 81%)
CMYKcmyk(15.5%, 68.1%, 0%, 18.8%)
CIE-LABlab(48.90, 64.00, -52.77)
CIE-LCHlch(48.90, 82.95, 320.50°)
OKLaboklab(58.75% 0.162 -0.1481)
OKLCHoklch(58.75% 0.22 317.6)
XYZxyz(30.8883, 17.5167, 60.7734)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42CF #62CF42
analogous
#6842CF #AF42CF #CF42A8
triadic
#AF42CF #CFAF42 #42CFAF
tetradic
#AF42CF #CF6842 #62CF42 #42A8CF
square
#AF42CF #CF6842 #62CF42 #42A8CF
split-complementary
#AF42CF #A8CF42 #42CF68
monochromatic
#641F78 #8C2BA9 #AF42CF #C473DB #D8A4E8

Accessibility & contrast

On white

4.66
#AF42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#AF42CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42CF
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42CF#FFFFFF#000000##FFFFFF
##AF42CF1.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#4678CC
Tritanopia (blue-blind)
#AE5D84
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #af42cf;
/* rgb */ color: rgb(175, 66, 207);
/* oklch */ color: oklch(58.7% 0.220 317.6);
Tailwind
colors: {
  custom: {
    50: '#cb7fde',
    500: '#af42cf',
    950: '#000000',
  },
}
SCSS
$custom: #af42cf;
$custom-light: #cb7fde;
$custom-dark: #000000;
JSON
{
  "hex": "#af42cf",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 286.383,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58748,
    "c": 0.2195,
    "h": 317.6
  },
  "luminance": 0.17515
}

Semantic roles & 50–950 ramp

primary
#AF42CF
secondary
#A6D598
accent
#E34569
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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