#BA3EB9#BA3EB9

#BA3EB9 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.6% C 0.211 H 328.2°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BA3EB9
RGBrgb(186, 62, 185)
HSLhsl(300, 50%, 49%)
HSVhsv(300, 67%, 73%)
CMYKcmyk(0%, 66.7%, 0.5%, 27.1%)
CIE-LABlab(48.75, 64.09, -40.19)
CIE-LCHlch(48.75, 75.64, 327.91°)
OKLaboklab(58.56% 0.1791 -0.1111)
OKLCHoklch(58.56% 0.211 328.2)
XYZxyz(30.7289, 17.3893, 47.6275)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EB9 #3EBA3F
analogous
#7D3EBA #BA3EB9 #BA3E7B
triadic
#BA3EB9 #B9BA3E #3EB9BA
tetradic
#BA3EB9 #BA7D3E #3EBA3F #3E7BBA
square
#BA3EB9 #BA7D3E #3EBA3F #3E7BBA
split-complementary
#BA3EB9 #7BBA3E #3EBA7D
monochromatic
#5E1F5E #8C2F8B #BA3EB9 #CD68CC #DC96DC

Accessibility & contrast

On white

4.69
#BA3EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#BA3EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3EB9
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EB9#FFFFFF#000000##FFFFFF
##BA3EB91.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D69BD
Deuteranopia (green-blind)
#5E7AB6
Tritanopia (blue-blind)
#C04F77
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba3eb9;
/* rgb */ color: rgb(186, 62, 185);
/* oklch */ color: oklch(58.6% 0.211 328.2);
Tailwind
colors: {
  custom: {
    50: '#d27dce',
    500: '#ba3eb9',
    950: '#000000',
  },
}
SCSS
$custom: #ba3eb9;
$custom-light: #d27dce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3eb9",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 185
  },
  "hsl": {
    "h": 300.484,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58563,
    "c": 0.21073,
    "h": 328.2
  },
  "luminance": 0.17387
}

Semantic roles & 50–950 ramp

primary
#BA3EB9
secondary
#8CC88D
accent
#DA4F4E
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #BA3EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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