#BA3CAB#BA3CAB

#BA3CAB is a mid, highly saturated purple. Relative luminance 0.166; OKLCH L 57.6% C 0.202 H 333.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA3CAB
RGBrgb(186, 60, 171)
HSLhsl(307, 51%, 48%)
HSVhsv(307, 68%, 73%)
CMYKcmyk(0%, 67.7%, 8.1%, 27.1%)
CIE-LABlab(47.77, 62.58, -33.52)
CIE-LCHlch(47.77, 70.99, 331.83°)
OKLaboklab(57.63% 0.1804 -0.0918)
OKLCHoklch(57.63% 0.202 333)
XYZxyz(29.2164, 16.6134, 40.1881)
Luminance0.1661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3CAB #3CBA4B
analogous
#8A3CBA #BA3CAB #BA3C6C
triadic
#BA3CAB #ABBA3C #3CABBA
tetradic
#BA3CAB #BA8A3C #3CBA4B #3C6CBA
square
#BA3CAB #BA8A3C #3CBA4B #3C6CBA
split-complementary
#BA3CAB #6CBA3C #3CBA8A
monochromatic
#5D1E56 #8C2D80 #BA3CAB #CE66C1 #DC94D4

Accessibility & contrast

On white

4.86
#BA3CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#BA3CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3CAB
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3CAB#FFFFFF#000000##FFFFFF
##BA3CAB1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3866AE
Deuteranopia (green-blind)
#6478A8
Tritanopia (blue-blind)
#C2476E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba3cab;
/* rgb */ color: rgb(186, 60, 171);
/* oklch */ color: oklch(57.6% 0.202 333.0);
Tailwind
colors: {
  custom: {
    50: '#d27cc4',
    500: '#ba3cab',
    950: '#000000',
  },
}
SCSS
$custom: #ba3cab;
$custom-light: #d27cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3cab",
  "rgb": {
    "r": 186,
    "g": 60,
    "b": 171
  },
  "hsl": {
    "h": 307.143,
    "s": 51.22,
    "l": 48.235
  },
  "oklch": {
    "l": 0.57627,
    "c": 0.20237,
    "h": 333
  },
  "luminance": 0.16611
}

Semantic roles & 50–950 ramp

primary
#BA3CAB
secondary
#8AC891
accent
#DB5E4D
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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