#AF33A8#AF33A8

#AF33A8 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.0% C 0.205 H 330.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF33A8
RGBrgb(175, 51, 168)
HSLhsl(303, 55%, 44%)
HSVhsv(303, 71%, 69%)
CMYKcmyk(0%, 70.9%, 4%, 31.4%)
CIE-LABlab(44.68, 62.75, -36.73)
CIE-LCHlch(44.68, 72.72, 329.66°)
OKLaboklab(55% 0.1781 -0.1013)
OKLCHoklch(55% 0.205 330.4)
XYZxyz(25.9308, 14.3108, 38.4347)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33A8 #33AF3A
analogous
#7833AF #AF33A8 #AF336A
triadic
#AF33A8 #A8AF33 #33A8AF
tetradic
#AF33A8 #AF7833 #33AF3A #336AAF
square
#AF33A8 #AF7833 #33AF3A #336AAF
split-complementary
#AF33A8 #6AAF33 #33AF78
monochromatic
#50174D #80257B #AF33A8 #CD52C6 #DB82D6

Accessibility & contrast

On white

5.44
#AF33A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF33A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33A8
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33A8#FFFFFF#000000##FFFFFF
##AF33A81.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275FAB
Deuteranopia (green-blind)
#5870A5
Tritanopia (blue-blind)
#B6426A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af33a8;
/* rgb */ color: rgb(175, 51, 168);
/* oklch */ color: oklch(55.0% 0.205 330.4);
Tailwind
colors: {
  custom: {
    50: '#ca76c2',
    500: '#af33a8',
    950: '#000000',
  },
}
SCSS
$custom: #af33a8;
$custom-light: #ca76c2;
$custom-dark: #000000;
JSON
{
  "hex": "#af33a8",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 168
  },
  "hsl": {
    "h": 303.387,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54999,
    "c": 0.20484,
    "h": 330.4
  },
  "luminance": 0.14309
}

Semantic roles & 50–950 ramp

primary
#AF33A8
secondary
#7AC47E
accent
#DE524A
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140912
muted
#827B81

Preview Lab

Preview with #AF33A8

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

Preview Lab → · Contrast checker → · Palette generator →

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