#AF28A3#AF28A3

#AF28A3 is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 53.8% C 0.213 H 332.1°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#AF28A3
RGBrgb(175, 40, 163)
HSLhsl(305, 63%, 42%)
HSVhsv(305, 77%, 69%)
CMYKcmyk(0%, 77.1%, 6.9%, 31.4%)
CIE-LABlab(43.18, 65.49, -36.12)
CIE-LCHlch(43.18, 74.79, 331.12°)
OKLaboklab(53.84% 0.1881 -0.0994)
OKLCHoklch(53.84% 0.213 332.1)
XYZxyz(25.0489, 13.2780, 35.8869)
Luminance0.1328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28A3 #28AF34
analogous
#7728AF #AF28A3 #AF2860
triadic
#AF28A3 #A3AF28 #28A3AF
tetradic
#AF28A3 #AF7728 #28AF34 #2860AF
square
#AF28A3 #AF7728 #28AF34 #2860AF
split-complementary
#AF28A3 #60AF28 #28AF77
monochromatic
#4B1146 #7D1D75 #AF28A3 #D441C6 #DF73D5

Accessibility & contrast

On white

5.75
#AF28A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#AF28A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28A3
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28A3#FFFFFF#000000##FFFFFF
##AF28A31.005.753.665.75
#FFFFFF5.751.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5AA6
Deuteranopia (green-blind)
#566DA0
Tritanopia (blue-blind)
#B73864
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #af28a3;
/* rgb */ color: rgb(175, 40, 163);
/* oklch */ color: oklch(53.8% 0.213 332.1);
Tailwind
colors: {
  custom: {
    50: '#cb72bf',
    500: '#af28a3',
    950: '#000000',
  },
}
SCSS
$custom: #af28a3;
$custom-light: #cb72bf;
$custom-dark: #000000;
JSON
{
  "hex": "#af28a3",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 163
  },
  "hsl": {
    "h": 305.333,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.5384,
    "c": 0.21271,
    "h": 332.1
  },
  "luminance": 0.13276
}

Semantic roles & 50–950 ramp

primary
#AF28A3
secondary
#6DC675
accent
#E65142
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF28A3

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

Preview Lab → · Contrast checker → · Palette generator →

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