#AF42C7#AF42C7

#AF42C7 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.3% C 0.212 H 319.9°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#AF42C7
RGBrgb(175, 66, 199)
HSLhsl(289, 54%, 52%)
HSVhsv(289, 67%, 78%)
CMYKcmyk(12.1%, 66.8%, 0%, 22%)
CIE-LABlab(48.43, 62.47, -48.92)
CIE-LCHlch(48.43, 79.34, 321.94°)
OKLaboklab(58.26% 0.1624 -0.1368)
OKLCHoklch(58.26% 0.212 319.9)
XYZxyz(29.9349, 17.1353, 55.7524)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42C7 #5AC742
analogous
#6D42C7 #AF42C7 #C7429D
triadic
#AF42C7 #C7AF42 #42C7AF
tetradic
#AF42C7 #C76D42 #5AC742 #429DC7
square
#AF42C7 #C76D42 #5AC742 #429DC7
split-complementary
#AF42C7 #9DC742 #42C76D
monochromatic
#60216E #892F9D #AF42C7 #C371D5 #D7A0E3

Accessibility & contrast

On white

4.74
#AF42C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#AF42C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42C7
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42C7#FFFFFF#000000##FFFFFF
##AF42C71.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#116CCB
Deuteranopia (green-blind)
#4D77C4
Tritanopia (blue-blind)
#B05A7F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af42c7;
/* rgb */ color: rgb(175, 66, 199);
/* oklch */ color: oklch(58.3% 0.212 319.9);
Tailwind
colors: {
  custom: {
    50: '#ca7fd9',
    500: '#af42c7',
    950: '#000000',
  },
}
SCSS
$custom: #af42c7;
$custom-light: #ca7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#af42c7",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 289.173,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58255,
    "c": 0.21232,
    "h": 319.9
  },
  "luminance": 0.17134
}

Semantic roles & 50–950 ramp

primary
#AF42C7
secondary
#A0D095
accent
#DE4A65
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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