#AF33A7#AF33A7

#AF33A7 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 54.9% C 0.204 H 330.7°. Best body text is #FFFFFF at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#AF33A7
RGBrgb(175, 51, 167)
HSLhsl(304, 55%, 44%)
HSVhsv(304, 71%, 69%)
CMYKcmyk(0%, 70.9%, 4.6%, 31.4%)
CIE-LABlab(44.62, 62.59, -36.22)
CIE-LCHlch(44.62, 72.32, 329.94°)
OKLaboklab(54.95% 0.178 -0.0998)
OKLCHoklch(54.95% 0.204 330.7)
XYZxyz(25.8380, 14.2736, 37.9460)
Luminance0.1427 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33A7 #33AF3B
analogous
#7933AF #AF33A7 #AF3369
triadic
#AF33A7 #A7AF33 #33A7AF
tetradic
#AF33A7 #AF7933 #33AF3B #3369AF
square
#AF33A7 #AF7933 #33AF3B #3369AF
split-complementary
#AF33A7 #69AF33 #33AF79
monochromatic
#50174D #80257A #AF33A7 #CD52C5 #DB82D5

Accessibility & contrast

On white

5.45
#AF33A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#AF33A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33A7
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33A7#FFFFFF#000000##FFFFFF
##AF33A71.005.453.855.45
#FFFFFF5.451.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285FAA
Deuteranopia (green-blind)
#5870A4
Tritanopia (blue-blind)
#B64269
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af33a7;
/* rgb */ color: rgb(175, 51, 167);
/* oklch */ color: oklch(54.9% 0.204 330.7);
Tailwind
colors: {
  custom: {
    50: '#ca76c1',
    500: '#af33a7',
    950: '#000000',
  },
}
SCSS
$custom: #af33a7;
$custom-light: #ca76c1;
$custom-dark: #000000;
JSON
{
  "hex": "#af33a7",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 167
  },
  "hsl": {
    "h": 303.871,
    "s": 54.867,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54945,
    "c": 0.20408,
    "h": 330.7
  },
  "luminance": 0.14272
}

Semantic roles & 50–950 ramp

primary
#AF33A7
secondary
#7AC47F
accent
#DE534A
background
#FCF7FB
surface
#F9EEF7
border
#D2C9D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF33A7

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

Preview Lab → · Contrast checker → · Palette generator →

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