#AF28B2#AF28B2

#AF28B2 is a mid, highly saturated purple. Relative luminance 0.138; OKLCH L 54.7% C 0.224 H 327.1°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#AF28B2
RGBrgb(175, 40, 178)
HSLhsl(299, 63%, 43%)
HSVhsv(299, 78%, 70%)
CMYKcmyk(1.7%, 77.5%, 0%, 30.2%)
CIE-LABlab(44.01, 67.85, -43.70)
CIE-LCHlch(44.01, 80.71, 327.21°)
OKLaboklab(54.71% 0.1879 -0.1214)
OKLCHoklch(54.71% 0.224 327.1)
XYZxyz(26.4735, 13.8478, 43.3894)
Luminance0.1385 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28B2 #2BB228
analogous
#6A28B2 #AF28B2 #B22870
triadic
#AF28B2 #B2AF28 #28B2AF
tetradic
#AF28B2 #B26A28 #2BB228 #2870B2
square
#AF28B2 #B26A28 #2BB228 #2870B2
split-complementary
#AF28B2 #70B228 #28B26A
monochromatic
#4D124E #7E1D80 #AF28B2 #D143D5 #DE75E0

Accessibility & contrast

On white

5.57
#AF28B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#AF28B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28B2
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28B2#FFFFFF#000000##FFFFFF
##AF28B21.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#4D6EAF
Tritanopia (blue-blind)
#B4406D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af28b2;
/* rgb */ color: rgb(175, 40, 178);
/* oklch */ color: oklch(54.7% 0.224 327.1);
Tailwind
colors: {
  custom: {
    50: '#cb72c9',
    500: '#af28b2',
    950: '#000000',
  },
}
SCSS
$custom: #af28b2;
$custom-light: #cb72c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af28b2",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 178
  },
  "hsl": {
    "h": 298.696,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.54705,
    "c": 0.22375,
    "h": 327.1
  },
  "luminance": 0.13846
}

Semantic roles & 50–950 ramp

primary
#AF28B2
secondary
#70C76F
accent
#E64145
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF28B2

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

Preview Lab → · Contrast checker → · Palette generator →

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