#BA3EAB#BA3EAB

#BA3EAB is a mid, vivid purple. Relative luminance 0.168; OKLCH L 57.8% C 0.200 H 333.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BA3EAB
RGBrgb(186, 62, 171)
HSLhsl(307, 50%, 49%)
HSVhsv(307, 67%, 73%)
CMYKcmyk(0%, 66.7%, 8.1%, 27.1%)
CIE-LABlab(48.04, 61.81, -33.09)
CIE-LCHlch(48.04, 70.11, 331.84°)
OKLaboklab(57.82% 0.1781 -0.0906)
OKLCHoklch(57.82% 0.2 333)
XYZxyz(29.3231, 16.8270, 40.2237)
Luminance0.1683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EAB #3EBA4D
analogous
#8B3EBA #BA3EAB #BA3E6D
triadic
#BA3EAB #ABBA3E #3EABBA
tetradic
#BA3EAB #BA8B3E #3EBA4D #3E6DBA
square
#BA3EAB #BA8B3E #3EBA4D #3E6DBA
split-complementary
#BA3EAB #6DBA3E #3EBA8B
monochromatic
#5E1F57 #8C2F81 #BA3EAB #CD68C1 #DC96D4

Accessibility & contrast

On white

4.81
#BA3EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BA3EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3EAB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EAB#FFFFFF#000000##FFFFFF
##BA3EAB1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A67AE
Deuteranopia (green-blind)
#6578A8
Tritanopia (blue-blind)
#C2496F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba3eab;
/* rgb */ color: rgb(186, 62, 171);
/* oklch */ color: oklch(57.8% 0.200 333.0);
Tailwind
colors: {
  custom: {
    50: '#d27dc4',
    500: '#ba3eab',
    950: '#000000',
  },
}
SCSS
$custom: #ba3eab;
$custom-light: #d27dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3eab",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 171
  },
  "hsl": {
    "h": 307.258,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.57824,
    "c": 0.19984,
    "h": 333
  },
  "luminance": 0.16825
}

Semantic roles & 50–950 ramp

primary
#BA3EAB
secondary
#8CC893
accent
#DA5F4E
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A13
muted
#837C82

Preview Lab

Preview with #BA3EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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