#AF42C8#AF42C8

#AF42C8 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.3% C 0.213 H 319.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#AF42C8
RGBrgb(175, 66, 200)
HSLhsl(289, 55%, 52%)
HSVhsv(289, 67%, 78%)
CMYKcmyk(12.5%, 67%, 0%, 21.6%)
CIE-LABlab(48.49, 62.66, -49.40)
CIE-LCHlch(48.49, 79.79, 321.75°)
OKLaboklab(58.32% 0.1623 -0.1382)
OKLCHoklch(58.32% 0.213 319.6)
XYZxyz(30.0514, 17.1819, 56.3659)
Luminance0.1718 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42C8 #5BC842
analogous
#6C42C8 #AF42C8 #C8429E
triadic
#AF42C8 #C8AF42 #42C8AF
tetradic
#AF42C8 #C86C42 #5BC842 #429EC8
square
#AF42C8 #C86C42 #5BC842 #429EC8
split-complementary
#AF42C8 #9EC842 #42C86C
monochromatic
#61206F #8A2E9F #AF42C8 #C371D6 #D7A1E4

Accessibility & contrast

On white

4.73
#AF42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#AF42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42C8
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42C8#FFFFFF#000000##FFFFFF
##AF42C81.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E6CCC
Deuteranopia (green-blind)
#4C77C5
Tritanopia (blue-blind)
#AF5A80
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #af42c8;
/* rgb */ color: rgb(175, 66, 200);
/* oklch */ color: oklch(58.3% 0.213 319.6);
Tailwind
colors: {
  custom: {
    50: '#ca7fd9',
    500: '#af42c8',
    950: '#000000',
  },
}
SCSS
$custom: #af42c8;
$custom-light: #ca7fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#af42c8",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 288.806,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58316,
    "c": 0.21321,
    "h": 319.6
  },
  "luminance": 0.17181
}

Semantic roles & 50–950 ramp

primary
#AF42C8
secondary
#A1D096
accent
#DE4A65
background
#FCF8FD
surface
#F9EFFB
border
#D2CAD4
text
#140B15
muted
#827C83

Preview Lab

Preview with #AF42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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