#AF3DAB#AF3DAB

#AF3DAB is a mid, vivid purple. Relative luminance 0.154; OKLCH L 56.1% C 0.195 H 329.2°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#AF3DAB
RGBrgb(175, 61, 171)
HSLhsl(302, 48%, 46%)
HSVhsv(302, 65%, 69%)
CMYKcmyk(0%, 65.1%, 2.3%, 31.4%)
CIE-LABlab(46.17, 59.49, -36.15)
CIE-LCHlch(46.17, 69.61, 328.71°)
OKLaboklab(56.13% 0.1674 -0.0997)
OKLCHoklch(56.13% 0.195 329.2)
XYZxyz(26.6984, 15.3936, 40.0852)
Luminance0.1539 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AF3DAB #3DAF41
analogous
#7A3DAF #AF3DAB #AF3D72
triadic
#AF3DAB #ABAF3D #3DABAF
tetradic
#AF3DAB #AF7A3D #3DAF41 #3D72AF
square
#AF3DAB #AF7A3D #3DAF41 #3D72AF
split-complementary
#AF3DAB #72AF3D #3DAF7A
monochromatic
#541D52 #822D7F #AF3DAB #C861C4 #D88FD5

Accessibility & contrast

On white

5.15
#AF3DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#AF3DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AF3DAB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AF3DAB#FFFFFF#000000##FFFFFF
##AF3DAB1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3164AE
Deuteranopia (green-blind)
#5B73A8
Tritanopia (blue-blind)
#B54B6F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #af3dab;
/* rgb */ color: rgb(175, 61, 171);
/* oklch */ color: oklch(56.1% 0.195 329.2);
Tailwind
colors: {
  custom: {
    50: '#ca7bc4',
    500: '#af3dab',
    950: '#000000',
  },
}
SCSS
$custom: #af3dab;
$custom-light: #ca7bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#af3dab",
  "rgb": {
    "r": 175,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 302.105,
    "s": 48.305,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56128,
    "c": 0.19486,
    "h": 329.2
  },
  "luminance": 0.15392
}

Semantic roles & 50–950 ramp

primary
#AF3DAB
secondary
#85C387
accent
#D85550
background
#FCF7FC
surface
#F9EEF8
border
#D2C9D1
text
#140A13
muted
#827C82

Preview Lab

Preview with #AF3DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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