#BA3DAB#BA3DAB

#BA3DAB is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.7% C 0.201 H 333.0°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#BA3DAB
RGBrgb(186, 61, 171)
HSLhsl(307, 51%, 48%)
HSVhsv(307, 67%, 73%)
CMYKcmyk(0%, 67.2%, 8.1%, 27.1%)
CIE-LABlab(47.90, 62.20, -33.30)
CIE-LCHlch(47.90, 70.55, 331.83°)
OKLaboklab(57.73% 0.1792 -0.0912)
OKLCHoklch(57.73% 0.201 333)
XYZxyz(29.2692, 16.7192, 40.2057)
Luminance0.1672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3DAB #3DBA4C
analogous
#8A3DBA #BA3DAB #BA3D6C
triadic
#BA3DAB #ABBA3D #3DABBA
tetradic
#BA3DAB #BA8A3D #3DBA4C #3D6CBA
square
#BA3DAB #BA8A3D #3DBA4C #3D6CBA
split-complementary
#BA3DAB #6CBA3D #3DBA8A
monochromatic
#5E1F56 #8C2E81 #BA3DAB #CD67C1 #DC95D4

Accessibility & contrast

On white

4.83
#BA3DAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BA3DAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3DAB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3DAB#FFFFFF#000000##FFFFFF
##BA3DAB1.004.834.344.83
#FFFFFF4.831.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#6478A8
Tritanopia (blue-blind)
#C2486F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3dab;
/* rgb */ color: rgb(186, 61, 171);
/* oklch */ color: oklch(57.7% 0.201 333.0);
Tailwind
colors: {
  custom: {
    50: '#d27cc4',
    500: '#ba3dab',
    950: '#000000',
  },
}
SCSS
$custom: #ba3dab;
$custom-light: #d27cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3dab",
  "rgb": {
    "r": 186,
    "g": 61,
    "b": 171
  },
  "hsl": {
    "h": 307.2,
    "s": 50.607,
    "l": 48.431
  },
  "oklch": {
    "l": 0.57725,
    "c": 0.20111,
    "h": 333
  },
  "luminance": 0.16717
}

Semantic roles & 50–950 ramp

primary
#BA3DAB
secondary
#8BC892
accent
#DA5F4E
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3DAB

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

Preview Lab → · Contrast checker → · Palette generator →

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