#AF2DB4#AF2DB4

#AF2DB4 is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.2% C 0.221 H 326.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#AF2DB4
RGBrgb(175, 45, 180)
HSLhsl(298, 60%, 44%)
HSVhsv(298, 75%, 71%)
CMYKcmyk(2.8%, 75%, 0%, 29.4%)
CIE-LABlab(44.64, 66.70, -43.88)
CIE-LCHlch(44.64, 79.84, 326.66°)
OKLaboklab(55.19% 0.1837 -0.122)
OKLCHoklch(55.19% 0.221 326.4)
XYZxyz(26.8553, 14.2879, 44.5145)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DB4 #32B42D
analogous
#6C2DB4 #AF2DB4 #B42D76
triadic
#AF2DB4 #B4AF2D #2DB4AF
tetradic
#AF2DB4 #B46C2D #32B42D #2D76B4
square
#AF2DB4 #B46C2D #32B42D #2D76B4
split-complementary
#AF2DB4 #76B42D #2DB46C
monochromatic
#501552 #7F2183 #AF2DB4 #CD4CD2 #DB7DDE

Accessibility & contrast

On white

5.44
#AF2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#AF2DB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DB4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DB4#FFFFFF#000000##FFFFFF
##AF2DB41.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#4E6FB1
Tritanopia (blue-blind)
#B4446F
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #af2db4;
/* rgb */ color: rgb(175, 45, 180);
/* oklch */ color: oklch(55.2% 0.221 326.4);
Tailwind
colors: {
  custom: {
    50: '#cb74cb',
    500: '#af2db4',
    950: '#000000',
  },
}
SCSS
$custom: #af2db4;
$custom-light: #cb74cb;
$custom-dark: #000000;
JSON
{
  "hex": "#af2db4",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 297.778,
    "s": 60,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5519,
    "c": 0.22052,
    "h": 326.4
  },
  "luminance": 0.14286
}

Semantic roles & 50–950 ramp

primary
#AF2DB4
secondary
#79C776
accent
#E3454B
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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