#AF2DB1#AF2DB1

#AF2DB1 is a mid, highly saturated purple. Relative luminance 0.142; OKLCH L 55.0% C 0.218 H 327.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#AF2DB1
RGBrgb(175, 45, 177)
HSLhsl(299, 59%, 44%)
HSVhsv(299, 75%, 69%)
CMYKcmyk(1.1%, 74.6%, 0%, 30.6%)
CIE-LABlab(44.47, 66.21, -42.39)
CIE-LCHlch(44.47, 78.61, 327.37°)
OKLaboklab(55.01% 0.1838 -0.1176)
OKLCHoklch(55.01% 0.218 327.4)
XYZxyz(26.5530, 14.1670, 42.9224)
Luminance0.1416 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DB1 #2FB12D
analogous
#6D2DB1 #AF2DB1 #B12D71
triadic
#AF2DB1 #B1AF2D #2DB1AF
tetradic
#AF2DB1 #B16D2D #2FB12D #2D71B1
square
#AF2DB1 #B16D2D #2FB12D #2D71B1
split-complementary
#AF2DB1 #71B12D #2DB16D
monochromatic
#4F144F #7F2180 #AF2DB1 #CF4AD1 #DC7BDD

Accessibility & contrast

On white

5.48
#AF2DB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#AF2DB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DB1
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DB1#FFFFFF#000000##FFFFFF
##AF2DB11.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#095FB5
Deuteranopia (green-blind)
#506FAE
Tritanopia (blue-blind)
#B4436D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #af2db1;
/* rgb */ color: rgb(175, 45, 177);
/* oklch */ color: oklch(55.0% 0.218 327.4);
Tailwind
colors: {
  custom: {
    50: '#cb74c9',
    500: '#af2db1',
    950: '#000000',
  },
}
SCSS
$custom: #af2db1;
$custom-light: #cb74c9;
$custom-dark: #000000;
JSON
{
  "hex": "#af2db1",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 177
  },
  "hsl": {
    "h": 299.091,
    "s": 59.459,
    "l": 43.529
  },
  "oklch": {
    "l": 0.55012,
    "c": 0.21821,
    "h": 327.4
  },
  "luminance": 0.14165
}

Semantic roles & 50–950 ramp

primary
#AF2DB1
secondary
#75C674
accent
#E34548
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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