#AF42BF#AF42BF

#AF42BF is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 57.8% C 0.205 H 322.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#AF42BF
RGBrgb(175, 66, 191)
HSLhsl(292, 49%, 50%)
HSVhsv(292, 65%, 75%)
CMYKcmyk(8.4%, 65.4%, 0%, 25.1%)
CIE-LABlab(47.97, 60.98, -45.01)
CIE-LCHlch(47.97, 75.79, 323.57°)
OKLaboklab(57.78% 0.1625 -0.1254)
OKLCHoklch(57.78% 0.205 322.3)
XYZxyz(29.0304, 16.7735, 50.9886)
Luminance0.1677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42BF #52BF42
analogous
#7042BF #AF42BF #BF4290
triadic
#AF42BF #BFAF42 #42BFAF
tetradic
#AF42BF #BF7042 #52BF42 #4290BF
square
#AF42BF #BF7042 #52BF42 #4290BF
split-complementary
#AF42BF #90BF42 #42BF70
monochromatic
#5C2265 #863292 #AF42BF #C270CE #D69DDE

Accessibility & contrast

On white

4.82
#AF42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#AF42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42BF
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42BF#FFFFFF#000000##FFFFFF
##AF42BF1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#226AC3
Deuteranopia (green-blind)
#5376BC
Tritanopia (blue-blind)
#B1567B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af42bf;
/* rgb */ color: rgb(175, 66, 191);
/* oklch */ color: oklch(57.8% 0.205 322.3);
Tailwind
colors: {
  custom: {
    50: '#ca7ed3',
    500: '#af42bf',
    950: '#000000',
  },
}
SCSS
$custom: #af42bf;
$custom-light: #ca7ed3;
$custom-dark: #000000;
JSON
{
  "hex": "#af42bf",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 292.32,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.57779,
    "c": 0.20523,
    "h": 322.3
  },
  "luminance": 0.16772
}

Semantic roles & 50–950 ramp

primary
#AF42BF
secondary
#9ACA93
accent
#D94F61
background
#FCF8FD
surface
#F9EFFA
border
#D2CAD3
text
#140B14
muted
#827C83

Preview Lab

Preview with #AF42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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