#AF28B0#AF28B0

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

Color values

HEX#AF28B0
RGBrgb(175, 40, 176)
HSLhsl(300, 63%, 42%)
HSVhsv(300, 77%, 69%)
CMYKcmyk(0.6%, 77.3%, 0%, 31%)
CIE-LABlab(43.90, 67.53, -42.71)
CIE-LCHlch(43.90, 79.90, 327.69°)
OKLaboklab(54.59% 0.188 -0.1185)
OKLCHoklch(54.59% 0.222 327.8)
XYZxyz(26.2741, 13.7681, 42.3395)
Luminance0.1377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28B0 #29B028
analogous
#6B28B0 #AF28B0 #B0286D
triadic
#AF28B0 #B0AF28 #28B0AF
tetradic
#AF28B0 #B06B28 #29B028 #286DB0
square
#AF28B0 #B06B28 #29B028 #286DB0
split-complementary
#AF28B0 #6DB028 #28B06B
monochromatic
#4C114C #7D1D7E #AF28B0 #D341D4 #DE73DF

Accessibility & contrast

On white

5.60
#AF28B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#AF28B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28B0
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28B0#FFFFFF#000000##FFFFFF
##AF28B01.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB4
Deuteranopia (green-blind)
#4E6EAD
Tritanopia (blue-blind)
#B43F6C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af28b0;
/* rgb */ color: rgb(175, 40, 176);
/* oklch */ color: oklch(54.6% 0.222 327.8);
Tailwind
colors: {
  custom: {
    50: '#cb72c8',
    500: '#af28b0',
    950: '#000000',
  },
}
SCSS
$custom: #af28b0;
$custom-light: #cb72c8;
$custom-dark: #000000;
JSON
{
  "hex": "#af28b0",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 176
  },
  "hsl": {
    "h": 299.559,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.54586,
    "c": 0.22225,
    "h": 327.8
  },
  "luminance": 0.13766
}

Semantic roles & 50–950 ramp

primary
#AF28B0
secondary
#6EC66D
accent
#E64243
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #AF28B0

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

Preview Lab → · Contrast checker → · Palette generator →

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