#AF28A2#AF28A2

#AF28A2 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.8% C 0.212 H 332.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#AF28A2
RGBrgb(175, 40, 162)
HSLhsl(306, 63%, 42%)
HSVhsv(306, 77%, 69%)
CMYKcmyk(0%, 77.1%, 7.4%, 31.4%)
CIE-LABlab(43.13, 65.33, -35.60)
CIE-LCHlch(43.13, 74.40, 331.41°)
OKLaboklab(53.79% 0.188 -0.0979)
OKLCHoklch(53.79% 0.212 332.5)
XYZxyz(24.9597, 13.2423, 35.4169)
Luminance0.1324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF28A2 #28AF35
analogous
#7928AF #AF28A2 #AF285E
triadic
#AF28A2 #A2AF28 #28A2AF
tetradic
#AF28A2 #AF7928 #28AF35 #285EAF
square
#AF28A2 #AF7928 #28AF35 #285EAF
split-complementary
#AF28A2 #5EAF28 #28AF79
monochromatic
#4B1146 #7D1D74 #AF28A2 #D441C5 #DF73D4

Accessibility & contrast

On white

5.76
#AF28A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#AF28A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF28A2
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF28A2#FFFFFF#000000##FFFFFF
##AF28A21.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #af28a2;
/* rgb */ color: rgb(175, 40, 162);
/* oklch */ color: oklch(53.8% 0.212 332.5);
Tailwind
colors: {
  custom: {
    50: '#cb72be',
    500: '#af28a2',
    950: '#000000',
  },
}
SCSS
$custom: #af28a2;
$custom-light: #cb72be;
$custom-dark: #000000;
JSON
{
  "hex": "#af28a2",
  "rgb": {
    "r": 175,
    "g": 40,
    "b": 162
  },
  "hsl": {
    "h": 305.778,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53785,
    "c": 0.21201,
    "h": 332.5
  },
  "luminance": 0.1324
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #AF28A2

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

Preview Lab → · Contrast checker → · Palette generator →

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