#AF28B1#AF28B1

#AF28B1 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.6% C 0.223 H 327.5°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#AF28B1
RGBrgb(175, 40, 177)
HSLhsl(299, 63%, 43%)
HSVhsv(299, 77%, 69%)
CMYKcmyk(1.1%, 77.4%, 0%, 30.6%)
CIE-LABlab(43.96, 67.69, -43.21)
CIE-LCHlch(43.96, 80.30, 327.45°)
OKLaboklab(54.65% 0.188 -0.12)
OKLCHoklch(54.65% 0.223 327.5)
XYZxyz(26.3734, 13.8078, 42.8625)
Luminance0.1381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28B1 #2AB128
analogous
#6A28B1 #AF28B1 #B1286F
triadic
#AF28B1 #B1AF28 #28B1AF
tetradic
#AF28B1 #B16A28 #2AB128 #286FB1
square
#AF28B1 #B16A28 #2AB128 #286FB1
split-complementary
#AF28B1 #6FB128 #28B16A
monochromatic
#4C114D #7E1D7F #AF28B1 #D242D4 #DE74E0

Accessibility & contrast

On white

5.58
#AF28B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#AF28B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28B1
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28B1#FFFFFF#000000##FFFFFF
##AF28B11.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#4E6EAE
Tritanopia (blue-blind)
#B4406C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af28b1;
/* rgb */ color: rgb(175, 40, 177);
/* oklch */ color: oklch(54.6% 0.223 327.5);
Tailwind
colors: {
  custom: {
    50: '#cb72c9',
    500: '#af28b1',
    950: '#000000',
  },
}
SCSS
$custom: #af28b1;
$custom-light: #cb72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af28b1",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 177
  },
  "hsl": {
    "h": 299.124,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.54645,
    "c": 0.223,
    "h": 327.5
  },
  "luminance": 0.13806
}

Semantic roles & 50–950 ramp

primary
#AF28B1
secondary
#6FC76E
accent
#E64244
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF28B1

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

Preview Lab → · Contrast checker → · Palette generator →

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