#AF2DA1#AF2DA1

#AF2DA1 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.1% C 0.206 H 332.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#AF2DA1
RGBrgb(175, 45, 161)
HSLhsl(306, 59%, 43%)
HSVhsv(306, 74%, 69%)
CMYKcmyk(0%, 74.3%, 8%, 31.4%)
CIE-LABlab(43.60, 63.66, -34.25)
CIE-LCHlch(43.60, 72.29, 331.72°)
OKLaboklab(54.11% 0.1836 -0.094)
OKLCHoklch(54.11% 0.206 332.9)
XYZxyz(25.0507, 13.5660, 35.0105)
Luminance0.1356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DA1 #2DAF3B
analogous
#7C2DAF #AF2DA1 #AF2D60
triadic
#AF2DA1 #A1AF2D #2DA1AF
tetradic
#AF2DA1 #AF7C2D #2DAF3B #2D60AF
square
#AF2DA1 #AF7C2D #2DAF3B #2D60AF
split-complementary
#AF2DA1 #60AF2D #2DAF7C
monochromatic
#4E1447 #7E2074 #AF2DA1 #D049C2 #DD7AD2

Accessibility & contrast

On white

5.66
#AF2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#AF2DA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DA1
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DA1#FFFFFF#000000##FFFFFF
##AF2DA11.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275BA4
Deuteranopia (green-blind)
#596E9E
Tritanopia (blue-blind)
#B73B64
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #af2da1;
/* rgb */ color: rgb(175, 45, 161);
/* oklch */ color: oklch(54.1% 0.206 332.9);
Tailwind
colors: {
  custom: {
    50: '#cb74bd',
    500: '#af2da1',
    950: '#000000',
  },
}
SCSS
$custom: #af2da1;
$custom-light: #cb74bd;
$custom-dark: #000000;
JSON
{
  "hex": "#af2da1",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 306.462,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54111,
    "c": 0.20625,
    "h": 332.9
  },
  "luminance": 0.13564
}

Semantic roles & 50–950 ramp

primary
#AF2DA1
secondary
#73C57C
accent
#E25646
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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