#AF42D5#AF42D5

#AF42D5 is a mid, highly saturated purple. Relative luminance 0.178; OKLCH L 59.1% C 0.225 H 315.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#AF42D5
RGBrgb(175, 66, 213)
HSLhsl(284, 64%, 55%)
HSVhsv(284, 69%, 84%)
CMYKcmyk(17.8%, 69%, 0%, 16.5%)
CIE-LABlab(49.27, 65.17, -55.61)
CIE-LCHlch(49.27, 85.67, 319.52°)
OKLaboklab(59.13% 0.1616 -0.1564)
OKLCHoklch(59.13% 0.225 315.9)
XYZxyz(31.6358, 17.8157, 64.7102)
Luminance0.1781 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42D5 #68D542
analogous
#6642D5 #AF42D5 #D542B1
triadic
#AF42D5 #D5AF42 #42D5AF
tetradic
#AF42D5 #D56642 #68D542 #42B1D5
square
#AF42D5 #D56642 #68D542 #42B1D5
split-complementary
#AF42D5 #B1D542 #42D566
monochromatic
#661C80 #8E28B2 #AF42D5 #C474E0 #D9A6EB

Accessibility & contrast

On white

4.60
#AF42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#AF42D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42D5
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42D5#FFFFFF#000000##FFFFFF
##AF42D51.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD9
Deuteranopia (green-blind)
#4178D2
Tritanopia (blue-blind)
#AC5F87
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #af42d5;
/* rgb */ color: rgb(175, 66, 213);
/* oklch */ color: oklch(59.1% 0.225 315.9);
Tailwind
colors: {
  custom: {
    50: '#cb7fe3',
    500: '#af42d5',
    950: '#000000',
  },
}
SCSS
$custom: #af42d5;
$custom-light: #cb7fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#af42d5",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 284.49,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.59128,
    "c": 0.22492,
    "h": 315.9
  },
  "luminance": 0.17814
}

Semantic roles & 50–950 ramp

primary
#AF42D5
secondary
#AAD89A
accent
#E7416C
background
#FCF8FE
surface
#F9EFFC
border
#D2CAD5
text
#140B15
muted
#827C84

Preview Lab

Preview with #AF42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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