#AF42AE#AF42AE

#AF42AE is a mid, vivid purple. Relative luminance 0.161; OKLCH L 56.8% C 0.191 H 328.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#AF42AE
RGBrgb(175, 66, 174)
HSLhsl(301, 45%, 47%)
HSVhsv(301, 62%, 69%)
CMYKcmyk(0%, 62.3%, 0.6%, 31.4%)
CIE-LABlab(47.06, 57.94, -36.51)
CIE-LCHlch(47.06, 68.48, 327.78°)
OKLaboklab(56.83% 0.1618 -0.1007)
OKLCHoklch(56.83% 0.191 328.1)
XYZxyz(27.2670, 16.0682, 41.7015)
Luminance0.1607 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42AE #42AF43
analogous
#7942AF #AF42AE #AF4278
triadic
#AF42AE #AEAF42 #42AEAF
tetradic
#AF42AE #AF7942 #42AF43 #4278AF
square
#AF42AE #AF7942 #42AF43 #4278AF
split-complementary
#AF42AE #78AF42 #42AF79
monochromatic
#562056 #833182 #AF42AE #C668C5 #D795D6

Accessibility & contrast

On white

4.98
#AF42AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#AF42AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF42AE
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42AE#FFFFFF#000000##FFFFFF
##AF42AE1.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3566B1
Deuteranopia (green-blind)
#5C75AB
Tritanopia (blue-blind)
#B45072
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af42ae;
/* rgb */ color: rgb(175, 66, 174);
/* oklch */ color: oklch(56.8% 0.191 328.1);
Tailwind
colors: {
  custom: {
    50: '#ca7ec6',
    500: '#af42ae',
    950: '#000000',
  },
}
SCSS
$custom: #af42ae;
$custom-light: #ca7ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#af42ae",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 300.55,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56826,
    "c": 0.1906,
    "h": 328.1
  },
  "luminance": 0.16066
}

Semantic roles & 50–950 ramp

primary
#AF42AE
secondary
#8AC28B
accent
#D55453
background
#FCF8FC
surface
#F9EFF8
border
#D2CAD1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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