#AF2DB2#AF2DB2

#AF2DB2 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.1% C 0.219 H 327.1°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#AF2DB2
RGBrgb(175, 45, 178)
HSLhsl(299, 60%, 44%)
HSVhsv(299, 75%, 70%)
CMYKcmyk(1.7%, 74.7%, 0%, 30.2%)
CIE-LABlab(44.53, 66.37, -42.88)
CIE-LCHlch(44.53, 79.02, 327.13°)
OKLaboklab(55.07% 0.1838 -0.1191)
OKLCHoklch(55.07% 0.219 327.1)
XYZxyz(26.6530, 14.2070, 43.4493)
Luminance0.1421 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DB2 #30B22D
analogous
#6C2DB2 #AF2DB2 #B22D72
triadic
#AF2DB2 #B2AF2D #2DB2AF
tetradic
#AF2DB2 #B26C2D #30B22D #2D72B2
square
#AF2DB2 #B26C2D #30B22D #2D72B2
split-complementary
#AF2DB2 #72B22D #2DB26C
monochromatic
#4F1450 #7F2181 #AF2DB2 #CE4BD1 #DC7CDE

Accessibility & contrast

On white

5.47
#AF2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#AF2DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DB2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DB2#FFFFFF#000000##FFFFFF
##AF2DB21.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#065FB6
Deuteranopia (green-blind)
#4F6FAF
Tritanopia (blue-blind)
#B4436E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2db2;
/* rgb */ color: rgb(175, 45, 178);
/* oklch */ color: oklch(55.1% 0.219 327.1);
Tailwind
colors: {
  custom: {
    50: '#cb74c9',
    500: '#af2db2',
    950: '#000000',
  },
}
SCSS
$custom: #af2db2;
$custom-light: #cb74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2db2",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 298.647,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.55071,
    "c": 0.21898,
    "h": 327.1
  },
  "luminance": 0.14205
}

Semantic roles & 50–950 ramp

primary
#AF2DB2
secondary
#76C675
accent
#E34549
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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