#AF28B3#AF28B3

#AF28B3 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.8% C 0.225 H 326.8°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#AF28B3
RGBrgb(175, 40, 179)
HSLhsl(298, 63%, 43%)
HSVhsv(298, 78%, 70%)
CMYKcmyk(2.2%, 77.7%, 0%, 29.8%)
CIE-LABlab(44.07, 68.02, -44.20)
CIE-LCHlch(44.07, 81.12, 326.98°)
OKLaboklab(54.77% 0.1879 -0.1229)
OKLCHoklch(54.77% 0.225 326.8)
XYZxyz(26.5742, 13.8881, 43.9201)
Luminance0.1389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28B3 #2CB328
analogous
#6928B3 #AF28B3 #B32872
triadic
#AF28B3 #B3AF28 #28B3AF
tetradic
#AF28B3 #B36928 #2CB328 #2872B3
square
#AF28B3 #B36928 #2CB328 #2872B3
split-complementary
#AF28B3 #72B328 #28B369
monochromatic
#4D124F #7E1D81 #AF28B3 #D143D5 #DD75E0

Accessibility & contrast

On white

5.56
#AF28B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#AF28B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28B3
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28B3#FFFFFF#000000##FFFFFF
##AF28B31.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#4C6EB0
Tritanopia (blue-blind)
#B4416D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af28b3;
/* rgb */ color: rgb(175, 40, 179);
/* oklch */ color: oklch(54.8% 0.225 326.8);
Tailwind
colors: {
  custom: {
    50: '#cb72ca',
    500: '#af28b3',
    950: '#000000',
  },
}
SCSS
$custom: #af28b3;
$custom-light: #cb72ca;
$custom-dark: #000000;
JSON
{
  "hex": "#af28b3",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 179
  },
  "hsl": {
    "h": 298.273,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54765,
    "c": 0.22451,
    "h": 326.8
  },
  "luminance": 0.13886
}

Semantic roles & 50–950 ramp

primary
#AF28B3
secondary
#72C86F
accent
#E64146
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF28B3

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

Preview Lab → · Contrast checker → · Palette generator →

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