#AF42BC#AF42BC

#AF42BC is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.203 H 323.3°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#AF42BC
RGBrgb(175, 66, 188)
HSLhsl(294, 48%, 50%)
HSVhsv(294, 65%, 74%)
CMYKcmyk(6.9%, 64.9%, 0%, 26.3%)
CIE-LABlab(47.81, 60.43, -43.53)
CIE-LCHlch(47.81, 74.47, 324.23°)
OKLaboklab(57.61% 0.1624 -0.1211)
OKLCHoklch(57.61% 0.203 323.3)
XYZxyz(28.7037, 16.6428, 49.2677)
Luminance0.1664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42BC #4FBC42
analogous
#7242BC #AF42BC #BC428C
triadic
#AF42BC #BCAF42 #42BCAF
tetradic
#AF42BC #BC7242 #4FBC42 #428CBC
square
#AF42BC #BC7242 #4FBC42 #428CBC
split-complementary
#AF42BC #8CBC42 #42BC72
monochromatic
#5B2261 #85328F #AF42BC #C26FCC #D59CDC

Accessibility & contrast

On white

4.85
#AF42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#AF42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42BC
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42BC#FFFFFF#000000##FFFFFF
##AF42BC1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2669C0
Deuteranopia (green-blind)
#5476B9
Tritanopia (blue-blind)
#B25579
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #af42bc;
/* rgb */ color: rgb(175, 66, 188);
/* oklch */ color: oklch(57.6% 0.203 323.3);
Tailwind
colors: {
  custom: {
    50: '#ca7ed1',
    500: '#af42bc',
    950: '#000000',
  },
}
SCSS
$custom: #af42bc;
$custom-light: #ca7ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#af42bc",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 293.607,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.57605,
    "c": 0.2026,
    "h": 323.3
  },
  "luminance": 0.16641
}

Semantic roles & 50–950 ramp

primary
#AF42BC
secondary
#97C991
accent
#D8505F
background
#FCF8FC
surface
#F9EFF9
border
#D2CAD2
text
#140B14
muted
#827C82

Preview Lab

Preview with #AF42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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