#AF2DAB#AF2DAB

#AF2DAB is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.7% C 0.214 H 329.4°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#AF2DAB
RGBrgb(175, 45, 171)
HSLhsl(302, 59%, 43%)
HSVhsv(302, 74%, 69%)
CMYKcmyk(0%, 74.3%, 2.3%, 31.4%)
CIE-LABlab(44.14, 65.23, -39.37)
CIE-LCHlch(44.14, 76.19, 328.89°)
OKLaboklab(54.67% 0.1839 -0.1088)
OKLCHoklch(54.67% 0.214 329.4)
XYZxyz(25.9681, 13.9330, 39.8418)
Luminance0.1393 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF2DAB #2DAF31
analogous
#722DAF #AF2DAB #AF2D6A
triadic
#AF2DAB #ABAF2D #2DABAF
tetradic
#AF2DAB #AF722D #2DAF31 #2D6AAF
square
#AF2DAB #AF722D #2DAF31 #2D6AAF
split-complementary
#AF2DAB #6AAF2D #2DAF72
monochromatic
#4E144C #7E207B #AF2DAB #D049CC #DD7ADA

Accessibility & contrast

On white

5.55
#AF2DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#AF2DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF2DAB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF2DAB#FFFFFF#000000##FFFFFF
##AF2DAB1.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195DAE
Deuteranopia (green-blind)
#536EA8
Tritanopia (blue-blind)
#B5406A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #af2dab;
/* rgb */ color: rgb(175, 45, 171);
/* oklch */ color: oklch(54.7% 0.214 329.4);
Tailwind
colors: {
  custom: {
    50: '#cb74c4',
    500: '#af2dab',
    950: '#000000',
  },
}
SCSS
$custom: #af2dab;
$custom-light: #cb74c4;
$custom-dark: #000000;
JSON
{
  "hex": "#af2dab",
  "rgb": {
    "r": 175,
    "g": 45,
    "b": 171
  },
  "hsl": {
    "h": 301.846,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.54665,
    "c": 0.21365,
    "h": 329.4
  },
  "luminance": 0.13931
}

Semantic roles & 50–950 ramp

primary
#AF2DAB
secondary
#73C575
accent
#E24A46
background
#FCF7FC
surface
#F9EDF8
border
#D2C8D1
text
#140913
muted
#827B82

Preview Lab

Preview with #AF2DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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