#AF42AD#AF42AD

#AF42AD is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.8% C 0.190 H 328.5°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#AF42AD
RGBrgb(175, 66, 173)
HSLhsl(301, 45%, 47%)
HSVhsv(301, 62%, 69%)
CMYKcmyk(0%, 62.3%, 1.1%, 31.4%)
CIE-LABlab(47.01, 57.76, -36.00)
CIE-LCHlch(47.01, 68.07, 328.07°)
OKLaboklab(56.77% 0.1617 -0.0993)
OKLCHoklch(56.77% 0.19 328.5)
XYZxyz(27.1699, 16.0293, 41.1900)
Luminance0.1603 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF42AD #42AF44
analogous
#7B42AF #AF42AD #AF4277
triadic
#AF42AD #ADAF42 #42ADAF
tetradic
#AF42AD #AF7B42 #42AF44 #4277AF
square
#AF42AD #AF7B42 #42AF44 #4277AF
split-complementary
#AF42AD #77AF42 #42AF7B
monochromatic
#562055 #833181 #AF42AD #C668C4 #D795D6

Accessibility & contrast

On white

4.99
#AF42AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF42AD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF42AD#FFFFFF#000000##FFFFFF
##AF42AD1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3666B0
Deuteranopia (green-blind)
#5D75AA
Tritanopia (blue-blind)
#B54F71
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af42ad;
/* rgb */ color: rgb(175, 66, 173);
/* oklch */ color: oklch(56.8% 0.190 328.5);
Tailwind
colors: {
  custom: {
    50: '#ca7ec6',
    500: '#af42ad',
    950: '#000000',
  },
}
SCSS
$custom: #af42ad;
$custom-light: #ca7ec6;
$custom-dark: #000000;
JSON
{
  "hex": "#af42ad",
  "rgb": {
    "r": 175,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 301.101,
    "s": 45.228,
    "l": 47.255
  },
  "oklch": {
    "l": 0.56773,
    "c": 0.18976,
    "h": 328.5
  },
  "luminance": 0.16028
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF42AD

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

Preview Lab → · Contrast checker → · Palette generator →

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