#AF2DA5#AF2DA5

#AF2DA5 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.3% C 0.209 H 331.4°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#AF2DA5
RGBrgb(175, 45, 165)
HSLhsl(305, 59%, 43%)
HSVhsv(305, 74%, 69%)
CMYKcmyk(0%, 74.3%, 5.7%, 31.4%)
CIE-LABlab(43.81, 64.28, -36.31)
CIE-LCHlch(43.81, 73.83, 330.54°)
OKLaboklab(54.33% 0.1837 -0.1)
OKLCHoklch(54.33% 0.209 331.4)
XYZxyz(25.4091, 13.7094, 36.8979)
Luminance0.1371 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DA5 #2DAF37
analogous
#782DAF #AF2DA5 #AF2D64
triadic
#AF2DA5 #A5AF2D #2DA5AF
tetradic
#AF2DA5 #AF782D #2DAF37 #2D64AF
square
#AF2DA5 #AF782D #2DAF37 #2D64AF
split-complementary
#AF2DA5 #64AF2D #2DAF78
monochromatic
#4E1449 #7E2077 #AF2DA5 #D049C6 #DD7AD5

Accessibility & contrast

On white

5.61
#AF2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#AF2DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DA5
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DA5#FFFFFF#000000##FFFFFF
##AF2DA51.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225CA8
Deuteranopia (green-blind)
#576EA2
Tritanopia (blue-blind)
#B63D67
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2da5;
/* rgb */ color: rgb(175, 45, 165);
/* oklch */ color: oklch(54.3% 0.209 331.4);
Tailwind
colors: {
  custom: {
    50: '#cb74c0',
    500: '#af2da5',
    950: '#000000',
  },
}
SCSS
$custom: #af2da5;
$custom-light: #cb74c0;
$custom-dark: #000000;
JSON
{
  "hex": "#af2da5",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 304.615,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54329,
    "c": 0.20918,
    "h": 331.4
  },
  "luminance": 0.13707
}

Semantic roles & 50–950 ramp

primary
#AF2DA5
secondary
#73C579
accent
#E25246
background
#FCF7FB
surface
#F9EDF7
border
#D2C8D0
text
#140912
muted
#827B81

Preview Lab

Preview with #AF2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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