#AF23E2#AF23E2

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

Color values

HEX#AF23E2
RGBrgb(175, 35, 226)
HSLhsl(284, 77%, 51%)
HSVhsv(284, 85%, 89%)
CMYKcmyk(22.6%, 84.5%, 0%, 11.4%)
CIE-LABlab(46.72, 77.50, -67.15)
CIE-LCHlch(46.72, 102.54, 319.10°)
OKLaboklab(57.61% 0.1843 -0.1901)
OKLCHoklch(57.61% 0.265 314.1)
XYZxyz(32.0053, 15.8082, 73.3021)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF23E2 #56E223
analogous
#4F23E2 #AF23E2 #E223B5
triadic
#AF23E2 #E2AF23 #23E2AF
tetradic
#AF23E2 #E24F23 #56E223 #23B5E2
square
#AF23E2 #E24F23 #56E223 #23B5E2
split-complementary
#AF23E2 #B5E223 #23E24F
monochromatic
#5E107A #8817B1 #AF23E2 #C359E9 #D68FF0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##AF23E2#FFFFFF#000000##FFFFFF
##AF23E21.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)
#0068E7
Deuteranopia (green-blind)
#0072DE
Tritanopia (blue-blind)
#AA5788
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #af23e2;
/* rgb */ color: rgb(175, 35, 226);
/* oklch */ color: oklch(57.6% 0.265 314.1);
Tailwind
colors: {
  custom: {
    50: '#cd73ec',
    500: '#af23e2',
    950: '#000000',
  },
}
SCSS
$custom: #af23e2;
$custom-light: #cd73ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af23e2",
  "rgb": {
    "r": 175,
    "g": 35,
    "b": 226
  },
  "hsl": {
    "h": 283.979,
    "s": 76.707,
    "l": 51.176
  },
  "oklch": {
    "l": 0.57605,
    "c": 0.26476,
    "h": 314.1
  },
  "luminance": 0.15807
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF23E2

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

Preview Lab → · Contrast checker → · Palette generator →

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