#AF33C2#AF33C2

#AF33C2 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.226 H 322.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF33C2
RGBrgb(175, 51, 194)
HSLhsl(292, 58%, 48%)
HSVhsv(292, 74%, 76%)
CMYKcmyk(9.8%, 73.7%, 0%, 23.9%)
CIE-LABlab(46.15, 67.17, -49.67)
CIE-LCHlch(46.15, 83.54, 323.52°)
OKLaboklab(56.53% 0.1777 -0.1389)
OKLCHoklch(56.53% 0.226 322)
XYZxyz(28.5996, 15.3783, 52.4904)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33C2 #46C233
analogous
#6733C2 #AF33C2 #C2338D
triadic
#AF33C2 #C2AF33 #33C2AF
tetradic
#AF33C2 #C26733 #46C233 #338DC2
square
#AF33C2 #C26733 #46C233 #338DC2
split-complementary
#AF33C2 #8DC233 #33C267
monochromatic
#581A61 #832692 #AF33C2 #C55ED5 #D68EE1

Accessibility & contrast

On white

5.15
#AF33C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AF33C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33C2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33C2#FFFFFF#000000##FFFFFF
##AF33C21.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C6
Deuteranopia (green-blind)
#4772BF
Tritanopia (blue-blind)
#B14E78
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af33c2;
/* rgb */ color: rgb(175, 51, 194);
/* oklch */ color: oklch(56.5% 0.226 322.0);
Tailwind
colors: {
  custom: {
    50: '#cb77d5',
    500: '#af33c2',
    950: '#000000',
  },
}
SCSS
$custom: #af33c2;
$custom-light: #cb77d5;
$custom-dark: #000000;
JSON
{
  "hex": "#af33c2",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 194
  },
  "hsl": {
    "h": 292.028,
    "s": 58.367,
    "l": 48.039
  },
  "oklch": {
    "l": 0.56527,
    "c": 0.22551,
    "h": 322
  },
  "luminance": 0.15377
}

Semantic roles & 50–950 ramp

primary
#AF33C2
secondary
#8ECC85
accent
#E2465B
background
#FCF7FD
surface
#F9EEFA
border
#D2C9D3
text
#140A14
muted
#827C83

Preview Lab

Preview with #AF33C2

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

Preview Lab → · Contrast checker → · Palette generator →

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