#BA3EB2#BA3EB2

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

Color values

HEX#BA3EB2
RGBrgb(186, 62, 178)
HSLhsl(304, 50%, 49%)
HSVhsv(304, 67%, 73%)
CMYKcmyk(0%, 66.7%, 4.3%, 27.1%)
CIE-LABlab(48.39, 62.93, -36.66)
CIE-LCHlch(48.39, 72.83, 329.78°)
OKLaboklab(58.19% 0.1787 -0.1009)
OKLCHoklch(58.19% 0.205 330.6)
XYZxyz(30.0081, 17.1009, 43.8312)
Luminance0.1710 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EB2 #3EBA46
analogous
#843EBA #BA3EB2 #BA3E74
triadic
#BA3EB2 #B2BA3E #3EB2BA
tetradic
#BA3EB2 #BA843E #3EBA46 #3E74BA
square
#BA3EB2 #BA843E #3EBA46 #3E74BA
split-complementary
#BA3EB2 #74BA3E #3EBA84
monochromatic
#5E1F5A #8C2F86 #BA3EB2 #CD68C6 #DC96D8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA3EB2#FFFFFF#000000##FFFFFF
##BA3EB21.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)
#3468B5
Deuteranopia (green-blind)
#6179AF
Tritanopia (blue-blind)
#C14C73
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3eb2;
/* rgb */ color: rgb(186, 62, 178);
/* oklch */ color: oklch(58.2% 0.205 330.6);
Tailwind
colors: {
  custom: {
    50: '#d27dc9',
    500: '#ba3eb2',
    950: '#000000',
  },
}
SCSS
$custom: #ba3eb2;
$custom-light: #d27dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3eb2",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 303.871,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58187,
    "c": 0.20522,
    "h": 330.6
  },
  "luminance": 0.17099
}

Semantic roles & 50–950 ramp

primary
#BA3EB2
secondary
#8CC890
accent
#DA574E
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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