#AF22E3#AF22E3

#AF22E3 is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.6% C 0.266 H 313.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#AF22E3
RGBrgb(175, 34, 227)
HSLhsl(284, 78%, 51%)
HSVhsv(284, 85%, 89%)
CMYKcmyk(22.9%, 85%, 0%, 11%)
CIE-LABlab(46.72, 77.91, -67.72)
CIE-LCHlch(46.72, 103.23, 319.00°)
OKLaboklab(57.63% 0.1846 -0.1917)
OKLCHoklch(57.63% 0.266 313.9)
XYZxyz(32.1139, 15.8052, 74.0172)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF22E3 #56E322
analogous
#4E22E3 #AF22E3 #E322B6
triadic
#AF22E3 #E3AF22 #22E3AF
tetradic
#AF22E3 #E34E22 #56E322 #22B6E3
square
#AF22E3 #E34E22 #56E322 #22B6E3
split-complementary
#AF22E3 #B6E322 #22E34E
monochromatic
#5E107B #8816B1 #AF22E3 #C358EA #D68FF1

Accessibility & contrast

On white

5.05
#AF22E3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#AF22E3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF22E3
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF22E3#FFFFFF#000000##FFFFFF
##AF22E31.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E8
Deuteranopia (green-blind)
#0072DF
Tritanopia (blue-blind)
#AA5788
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af22e3;
/* rgb */ color: rgb(175, 34, 227);
/* oklch */ color: oklch(57.6% 0.266 313.9);
Tailwind
colors: {
  custom: {
    50: '#cd73ed',
    500: '#af22e3',
    950: '#000000',
  },
}
SCSS
$custom: #af22e3;
$custom-light: #cd73ed;
$custom-dark: #000000;
JSON
{
  "hex": "#af22e3",
  "rgb": {
    "r": 175,
    "g": 34,
    "b": 227
  },
  "hsl": {
    "h": 283.834,
    "s": 77.51,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57625,
    "c": 0.26619,
    "h": 313.9
  },
  "luminance": 0.15804
}

Semantic roles & 50–950 ramp

primary
#AF22E3
secondary
#9DDB86
accent
#F43468
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140916
muted
#837B84

Preview Lab

Preview with #AF22E3

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

Preview Lab → · Contrast checker → · Palette generator →

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