#AF28E2#AF28E2

#AF28E2 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.9% C 0.261 H 314.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#AF28E2
RGBrgb(175, 40, 226)
HSLhsl(284, 76%, 52%)
HSVhsv(284, 82%, 89%)
CMYKcmyk(22.6%, 82.3%, 0%, 11.4%)
CIE-LABlab(47.14, 76.29, -66.47)
CIE-LCHlch(47.14, 101.18, 318.93°)
OKLaboklab(57.89% 0.1813 -0.1881)
OKLCHoklch(57.89% 0.261 314)
XYZxyz(32.1631, 16.1237, 73.3547)
Luminance0.1612 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28E2 #5BE228
analogous
#5228E2 #AF28E2 #E228B8
triadic
#AF28E2 #E2AF28 #28E2AF
tetradic
#AF28E2 #E25228 #5BE228 #28B8E2
square
#AF28E2 #E25228 #5BE228 #28B8E2
split-complementary
#AF28E2 #B8E228 #28E252
monochromatic
#61117F #8A18B4 #AF28E2 #C35EE9 #D794F1

Accessibility & contrast

On white

4.97
#AF28E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#AF28E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28E2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28E2#FFFFFF#000000##FFFFFF
##AF28E21.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#0873DE
Tritanopia (blue-blind)
#AA5888
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #af28e2;
/* rgb */ color: rgb(175, 40, 226);
/* oklch */ color: oklch(57.9% 0.261 314.0);
Tailwind
colors: {
  custom: {
    50: '#cc75ec',
    500: '#af28e2',
    950: '#000000',
  },
}
SCSS
$custom: #af28e2;
$custom-light: #cc75ec;
$custom-dark: #000000;
JSON
{
  "hex": "#af28e2",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 283.548,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.57894,
    "c": 0.26128,
    "h": 314
  },
  "luminance": 0.16123
}

Semantic roles & 50–950 ramp

primary
#AF28E2
secondary
#A1DC8A
accent
#F33569
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #AF28E2

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

Preview Lab → · Contrast checker → · Palette generator →

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