#AF28AF#AF28AF

#AF28AF is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.5% C 0.222 H 328.1°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AF28AF
RGBrgb(175, 40, 175)
HSLhsl(300, 63%, 42%)
HSVhsv(300, 77%, 69%)
CMYKcmyk(0%, 77.1%, 0%, 31.4%)
CIE-LABlab(43.84, 67.37, -42.21)
CIE-LCHlch(43.84, 79.50, 327.93°)
OKLaboklab(54.53% 0.1881 -0.1171)
OKLCHoklch(54.53% 0.222 328.1)
XYZxyz(26.1755, 13.7286, 41.8204)
Luminance0.1373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28AF #28AF28
analogous
#6C28AF #AF28AF #AF286C
triadic
#AF28AF #AFAF28 #28AFAF
tetradic
#AF28AF #AF6C28 #28AF28 #286CAF
square
#AF28AF #AF6C28 #28AF28 #286CAF
split-complementary
#AF28AF #6CAF28 #28AF6C
monochromatic
#4B114B #7D1D7D #AF28AF #D441D4 #DF73DF

Accessibility & contrast

On white

5.61
#AF28AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AF28AF
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28AF#FFFFFF#000000##FFFFFF
##AF28AF1.005.613.755.61
#FFFFFF5.611.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB3
Deuteranopia (green-blind)
#4F6EAC
Tritanopia (blue-blind)
#B53F6B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af28af;
/* rgb */ color: rgb(175, 40, 175);
/* oklch */ color: oklch(54.5% 0.222 328.1);
Tailwind
colors: {
  custom: {
    50: '#cb72c7',
    500: '#af28af',
    950: '#000000',
  },
}
SCSS
$custom: #af28af;
$custom-light: #cb72c7;
$custom-dark: #000000;
JSON
{
  "hex": "#af28af",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 175
  },
  "hsl": {
    "h": 300,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.54526,
    "c": 0.22151,
    "h": 328.1
  },
  "luminance": 0.13727
}

Semantic roles & 50–950 ramp

primary
#AF28AF
secondary
#6DC66D
accent
#E64242
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF28AF

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

Preview Lab → · Contrast checker → · Palette generator →

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