#BA2BEE#BA2BEE

#BA2BEE is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 60.4% C 0.272 H 314.4°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#BA2BEE
RGBrgb(186, 43, 238)
HSLhsl(284, 85%, 55%)
HSVhsv(284, 82%, 93%)
CMYKcmyk(21.8%, 81.9%, 0%, 6.7%)
CIE-LABlab(49.91, 79.49, -68.69)
CIE-LCHlch(49.91, 105.06, 319.17°)
OKLaboklab(60.43% 0.1903 -0.1943)
OKLCHoklch(60.43% 0.272 314.4)
XYZxyz(36.5436, 18.3412, 82.4876)
Luminance0.1834 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BEE #5FEE2B
analogous
#582BEE #BA2BEE #EE2BC1
triadic
#BA2BEE #EEBA2B #2BEEBA
tetradic
#BA2BEE #EE582B #5FEE2B #2BC1EE
square
#BA2BEE #EE582B #5FEE2B #2BC1EE
split-complementary
#BA2BEE #C1EE2B #2BEE58
monochromatic
#6F0C93 #9A10CB #BA2BEE #CC64F3 #DF9CF7

Accessibility & contrast

On white

4.50
#BA2BEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#BA2BEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA2BEE
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BEE#FFFFFF#000000##000000
##BA2BEE1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FF3
Deuteranopia (green-blind)
#127AEA
Tritanopia (blue-blind)
#B55D90
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba2bee;
/* rgb */ color: rgb(186, 43, 238);
/* oklch */ color: oklch(60.4% 0.272 314.4);
Tailwind
colors: {
  custom: {
    50: '#d478f5',
    500: '#ba2bee',
    950: '#000000',
  },
}
SCSS
$custom: #ba2bee;
$custom-light: #d478f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2bee",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 238
  },
  "hsl": {
    "h": 284,
    "s": 85.153,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60425,
    "c": 0.27193,
    "h": 314.4
  },
  "luminance": 0.1834
}

Semantic roles & 50–950 ramp

primary
#BA2BEE
secondary
#A7E392
accent
#FB2C64
background
#FDF7FF
surface
#FBEEFE
border
#D4C9D6
text
#150A17
muted
#837C85

Preview Lab

Preview with #BA2BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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