#AF33C8#AF33C8

#AF33C8 is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.9% C 0.230 H 320.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#AF33C8
RGBrgb(175, 51, 200)
HSLhsl(290, 59%, 49%)
HSVhsv(290, 75%, 78%)
CMYKcmyk(12.5%, 74.5%, 0%, 21.6%)
CIE-LABlab(46.52, 68.25, -52.56)
CIE-LCHlch(46.52, 86.14, 322.40°)
OKLaboklab(56.91% 0.1772 -0.1474)
OKLCHoklch(56.91% 0.23 320.2)
XYZxyz(29.2871, 15.6533, 56.1111)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33C8 #4CC833
analogous
#6533C8 #AF33C8 #C83397
triadic
#AF33C8 #C8AF33 #33C8AF
tetradic
#AF33C8 #C86533 #4CC833 #3397C8
square
#AF33C8 #C86533 #4CC833 #3397C8
split-complementary
#AF33C8 #97C833 #33C865
monochromatic
#5A1A66 #842797 #AF33C8 #C361D7 #D692E3

Accessibility & contrast

On white

5.08
#AF33C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#AF33C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33C8
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33C8#FFFFFF#000000##FFFFFF
##AF33C81.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#4272C5
Tritanopia (blue-blind)
#B0517C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #af33c8;
/* rgb */ color: rgb(175, 51, 200);
/* oklch */ color: oklch(56.9% 0.230 320.2);
Tailwind
colors: {
  custom: {
    50: '#cb78d9',
    500: '#af33c8',
    950: '#000000',
  },
}
SCSS
$custom: #af33c8;
$custom-light: #cb78d9;
$custom-dark: #000000;
JSON
{
  "hex": "#af33c8",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 200
  },
  "hsl": {
    "h": 289.933,
    "s": 59.363,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56907,
    "c": 0.23044,
    "h": 320.2
  },
  "luminance": 0.15652
}

Semantic roles & 50–950 ramp

primary
#AF33C8
secondary
#94CE89
accent
#E34560
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #AF33C8

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

Preview Lab → · Contrast checker → · Palette generator →

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