#AF33C9#AF33C9

#AF33C9 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 57.0% C 0.231 H 320.0°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#AF33C9
RGBrgb(175, 51, 201)
HSLhsl(290, 60%, 49%)
HSVhsv(290, 75%, 79%)
CMYKcmyk(12.9%, 74.6%, 0%, 21.2%)
CIE-LABlab(46.58, 68.43, -53.04)
CIE-LCHlch(46.58, 86.58, 322.22°)
OKLaboklab(56.97% 0.1771 -0.1488)
OKLCHoklch(56.97% 0.231 320)
XYZxyz(29.4043, 15.7002, 56.7286)
Luminance0.1570 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33C9 #4DC933
analogous
#6433C9 #AF33C9 #C93398
triadic
#AF33C9 #C9AF33 #33C9AF
tetradic
#AF33C9 #C96433 #4DC933 #3398C9
square
#AF33C9 #C96433 #4DC933 #3398C9
split-complementary
#AF33C9 #98C933 #33C964
monochromatic
#5A1A67 #852798 #AF33C9 #C362D7 #D693E4

Accessibility & contrast

On white

5.07
#AF33C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#AF33C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33C9
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33C9#FFFFFF#000000##FFFFFF
##AF33C91.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CD
Deuteranopia (green-blind)
#4173C6
Tritanopia (blue-blind)
#AF527C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af33c9;
/* rgb */ color: rgb(175, 51, 201);
/* oklch */ color: oklch(57.0% 0.231 320.0);
Tailwind
colors: {
  custom: {
    50: '#cb78da',
    500: '#af33c9',
    950: '#000000',
  },
}
SCSS
$custom: #af33c9;
$custom-light: #cb78da;
$custom-dark: #000000;
JSON
{
  "hex": "#af33c9",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 201
  },
  "hsl": {
    "h": 289.6,
    "s": 59.524,
    "l": 49.412
  },
  "oklch": {
    "l": 0.56971,
    "c": 0.23126,
    "h": 320
  },
  "luminance": 0.15699
}

Semantic roles & 50–950 ramp

primary
#AF33C9
secondary
#95CF89
accent
#E34560
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF33C9

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

Preview Lab → · Contrast checker → · Palette generator →

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