#AF42C5#AF42C5

#AF42C5 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.1% C 0.211 H 320.5°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#AF42C5
RGBrgb(175, 66, 197)
HSLhsl(290, 53%, 52%)
HSVhsv(290, 66%, 77%)
CMYKcmyk(11.2%, 66.5%, 0%, 22.7%)
CIE-LABlab(48.31, 62.09, -47.95)
CIE-LCHlch(48.31, 78.45, 322.33°)
OKLaboklab(58.13% 0.1624 -0.134)
OKLCHoklch(58.13% 0.211 320.5)
XYZxyz(29.7043, 17.0431, 54.5375)
Luminance0.1704 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42C5 #58C542
analogous
#6E42C5 #AF42C5 #C54299
triadic
#AF42C5 #C5AF42 #42C5AF
tetradic
#AF42C5 #C56E42 #58C542 #4299C5
square
#AF42C5 #C56E42 #58C542 #4299C5
split-complementary
#AF42C5 #99C542 #42C56E
monochromatic
#5F216C #882F9A #AF42C5 #C371D3 #D7A0E2

Accessibility & contrast

On white

4.76
#AF42C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#AF42C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42C5
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42C5#FFFFFF#000000##FFFFFF
##AF42C51.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#166BC9
Deuteranopia (green-blind)
#4E77C2
Tritanopia (blue-blind)
#B0597E
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af42c5;
/* rgb */ color: rgb(175, 66, 197);
/* oklch */ color: oklch(58.1% 0.211 320.5);
Tailwind
colors: {
  custom: {
    50: '#ca7fd7',
    500: '#af42c5',
    950: '#000000',
  },
}
SCSS
$custom: #af42c5;
$custom-light: #ca7fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#af42c5",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 197
  },
  "hsl": {
    "h": 289.924,
    "s": 53.036,
    "l": 51.569
  },
  "oklch": {
    "l": 0.58134,
    "c": 0.21053,
    "h": 320.5
  },
  "luminance": 0.17042
}

Semantic roles & 50–950 ramp

primary
#AF42C5
secondary
#9ECE95
accent
#DC4B64
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF42C5

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

Preview Lab → · Contrast checker → · Palette generator →

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