#AF33E2#AF33E2

#AF33E2 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.7% C 0.252 H 313.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#AF33E2
RGBrgb(175, 51, 226)
HSLhsl(283, 75%, 54%)
HSVhsv(283, 77%, 89%)
CMYKcmyk(22.6%, 77.4%, 0%, 11.4%)
CIE-LABlab(48.23, 73.11, -64.71)
CIE-LCHlch(48.23, 97.63, 318.49°)
OKLaboklab(58.66% 0.1736 -0.183)
OKLCHoklch(58.66% 0.252 313.5)
XYZxyz(32.5881, 16.9737, 73.4964)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF33E2 #66E233
analogous
#5833E2 #AF33E2 #E233BE
triadic
#AF33E2 #E2AF33 #33E2AF
tetradic
#AF33E2 #E25833 #66E233 #33BEE2
square
#AF33E2 #E25833 #66E233 #33BEE2
split-complementary
#AF33E2 #BEE233 #33E258
monochromatic
#661387 #8E1BBD #AF33E2 #C469EA #D99EF1

Accessibility & contrast

On white

4.78
#AF33E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#AF33E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF33E2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF33E2#FFFFFF#000000##FFFFFF
##AF33E21.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#1D75DE
Tritanopia (blue-blind)
#AA5D8A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #af33e2;
/* rgb */ color: rgb(175, 51, 226);
/* oklch */ color: oklch(58.7% 0.252 313.5);
Tailwind
colors: {
  custom: {
    50: '#cc79ec',
    500: '#af33e2',
    950: '#000000',
  },
}
SCSS
$custom: #af33e2;
$custom-light: #cc79ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af33e2",
  "rgb": {
    "r": 175,
    "g": 51,
    "b": 226
  },
  "hsl": {
    "h": 282.514,
    "s": 75.107,
    "l": 54.314
  },
  "oklch": {
    "l": 0.58658,
    "c": 0.2522,
    "h": 313.5
  },
  "luminance": 0.16973
}

Semantic roles & 50–950 ramp

primary
#AF33E2
secondary
#A9DE93
accent
#F2366D
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF33E2

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

Preview Lab → · Contrast checker → · Palette generator →

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