#BA3EB8#BA3EB8

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

Color values

HEX#BA3EB8
RGBrgb(186, 62, 184)
HSLhsl(301, 50%, 49%)
HSVhsv(301, 67%, 73%)
CMYKcmyk(0%, 66.7%, 1.1%, 27.1%)
CIE-LABlab(48.69, 63.92, -39.69)
CIE-LCHlch(48.69, 75.24, 328.16°)
OKLaboklab(58.51% 0.179 -0.1096)
OKLCHoklch(58.51% 0.21 328.5)
XYZxyz(30.6237, 17.3472, 47.0735)
Luminance0.1734 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EB8 #3EBA40
analogous
#7E3EBA #BA3EB8 #BA3E7A
triadic
#BA3EB8 #B8BA3E #3EB8BA
tetradic
#BA3EB8 #BA7E3E #3EBA40 #3E7ABA
square
#BA3EB8 #BA7E3E #3EBA40 #3E7ABA
split-complementary
#BA3EB8 #7ABA3E #3EBA7E
monochromatic
#5E1F5D #8C2F8B #BA3EB8 #CD68CB #DC96DB

Accessibility & contrast

On white

4.70
#BA3EB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#BA3EB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3EB8
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EB8#FFFFFF#000000##FFFFFF
##BA3EB81.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E69BC
Deuteranopia (green-blind)
#5E79B5
Tritanopia (blue-blind)
#C04E76
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba3eb8;
/* rgb */ color: rgb(186, 62, 184);
/* oklch */ color: oklch(58.5% 0.210 328.5);
Tailwind
colors: {
  custom: {
    50: '#d27dce',
    500: '#ba3eb8',
    950: '#000000',
  },
}
SCSS
$custom: #ba3eb8;
$custom-light: #d27dce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3eb8",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 184
  },
  "hsl": {
    "h": 300.968,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.58509,
    "c": 0.20994,
    "h": 328.5
  },
  "luminance": 0.17345
}

Semantic roles & 50–950 ramp

primary
#BA3EB8
secondary
#8CC88D
accent
#DA514E
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B13
muted
#837C82

Preview Lab

Preview with #BA3EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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