#BA3EB7#BA3EB7

#BA3EB7 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.5% C 0.209 H 328.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA3EB7
RGBrgb(186, 62, 183)
HSLhsl(301, 50%, 49%)
HSVhsv(301, 67%, 73%)
CMYKcmyk(0%, 66.7%, 1.6%, 27.1%)
CIE-LABlab(48.64, 63.75, -39.19)
CIE-LCHlch(48.64, 74.83, 328.42°)
OKLaboklab(58.45% 0.179 -0.1082)
OKLCHoklch(58.45% 0.209 328.9)
XYZxyz(30.5193, 17.3054, 46.5234)
Luminance0.1730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EB7 #3EBA41
analogous
#7F3EBA #BA3EB7 #BA3E79
triadic
#BA3EB7 #B7BA3E #3EB7BA
tetradic
#BA3EB7 #BA7F3E #3EBA41 #3E79BA
square
#BA3EB7 #BA7F3E #3EBA41 #3E79BA
split-complementary
#BA3EB7 #79BA3E #3EBA7F
monochromatic
#5E1F5D #8C2F8A #BA3EB7 #CD68CA #DC96DA

Accessibility & contrast

On white

4.71
#BA3EB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#BA3EB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3EB7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EB7#FFFFFF#000000##FFFFFF
##BA3EB71.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F69BA
Deuteranopia (green-blind)
#5F79B4
Tritanopia (blue-blind)
#C04E76
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3eb7;
/* rgb */ color: rgb(186, 62, 183);
/* oklch */ color: oklch(58.5% 0.209 328.9);
Tailwind
colors: {
  custom: {
    50: '#d27dcd',
    500: '#ba3eb7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3eb7;
$custom-light: #d27dcd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3eb7",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 183
  },
  "hsl": {
    "h": 301.452,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58454,
    "c": 0.20915,
    "h": 328.9
  },
  "luminance": 0.17303
}

Semantic roles & 50–950 ramp

primary
#BA3EB7
secondary
#8CC88E
accent
#DA524E
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #BA3EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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