#AF33D6#AF33D6

#AF33D6 is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.8% C 0.242 H 316.5°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#AF33D6
RGBrgb(175, 51, 214)
HSLhsl(286, 67%, 52%)
HSVhsv(286, 76%, 84%)
CMYKcmyk(18.2%, 76.2%, 0%, 16.1%)
CIE-LABlab(47.41, 70.83, -59.18)
CIE-LCHlch(47.41, 92.30, 320.12°)
OKLaboklab(57.83% 0.1755 -0.1667)
OKLCHoklch(57.83% 0.242 316.5)
XYZxyz(30.9988, 16.3379, 65.1260)
Luminance0.1634 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33D6 #5AD633
analogous
#5E33D6 #AF33D6 #D633AC
triadic
#AF33D6 #D6AF33 #33D6AF
tetradic
#AF33D6 #D65E33 #5AD633 #33ACD6
square
#AF33D6 #D65E33 #5AD633 #33ACD6
split-complementary
#AF33D6 #ACD633 #33D65E
monochromatic
#601877 #8922AA #AF33D6 #C366E0 #D799EA

Accessibility & contrast

On white

4.92
#AF33D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#AF33D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33D6
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33D6#FFFFFF#000000##FFFFFF
##AF33D61.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#3374D2
Tritanopia (blue-blind)
#AD5884
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af33d6;
/* rgb */ color: rgb(175, 51, 214);
/* oklch */ color: oklch(57.8% 0.242 316.5);
Tailwind
colors: {
  custom: {
    50: '#cb78e3',
    500: '#af33d6',
    950: '#000000',
  },
}
SCSS
$custom: #af33d6;
$custom-light: #cb78e3;
$custom-dark: #000000;
JSON
{
  "hex": "#af33d6",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 214
  },
  "hsl": {
    "h": 285.644,
    "s": 66.531,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57829,
    "c": 0.24209,
    "h": 316.5
  },
  "luminance": 0.16337
}

Semantic roles & 50–950 ramp

primary
#AF33D6
secondary
#A0D68F
accent
#E93E67
background
#FDF7FE
surface
#FAEEFC
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF33D6

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

Preview Lab → · Contrast checker → · Palette generator →

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