#BA2ED3#BA2ED3

#BA2ED3 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 58.8% C 0.248 H 320.9°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA2ED3
RGBrgb(186, 46, 211)
HSLhsl(291, 65%, 50%)
HSVhsv(291, 78%, 83%)
CMYKcmyk(11.8%, 78.2%, 0%, 17.3%)
CIE-LABlab(48.38, 73.85, -55.81)
CIE-LCHlch(48.38, 92.56, 322.92°)
OKLaboklab(58.79% 0.1927 -0.1565)
OKLCHoklch(58.79% 0.248 320.9)
XYZxyz(32.9832, 17.0981, 63.1783)
Luminance0.1710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2ED3 #47D32E
analogous
#672ED3 #BA2ED3 #D32E99
triadic
#BA2ED3 #D3BA2E #2ED3BA
tetradic
#BA2ED3 #D3672E #47D32E #2E99D3
square
#BA2ED3 #D3672E #47D32E #2E99D3
split-complementary
#BA2ED3 #99D32E #2ED367
monochromatic
#62176F #8E22A2 #BA2ED3 #CB61DE #DB93E8

Accessibility & contrast

On white

4.75
#BA2ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#BA2ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2ED3
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2ED3#FFFFFF#000000##FFFFFF
##BA2ED31.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D7
Deuteranopia (green-blind)
#4378CF
Tritanopia (blue-blind)
#BB5181
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba2ed3;
/* rgb */ color: rgb(186, 46, 211);
/* oklch */ color: oklch(58.8% 0.248 320.9);
Tailwind
colors: {
  custom: {
    50: '#d377e1',
    500: '#ba2ed3',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ed3;
$custom-light: #d377e1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ed3",
  "rgb": {
    "r": 186,
    "g": 46,
    "b": 211
  },
  "hsl": {
    "h": 290.909,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58785,
    "c": 0.24824,
    "h": 320.9
  },
  "luminance": 0.17096
}

Semantic roles & 50–950 ramp

primary
#BA2ED3
secondary
#95D38A
accent
#E84059
background
#FDF7FD
surface
#FBEEFB
border
#D4C9D4
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA2ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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