#BA3EB3#BA3EB3

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

Color values

HEX#BA3EB3
RGBrgb(186, 62, 179)
HSLhsl(303, 50%, 49%)
HSVhsv(303, 67%, 73%)
CMYKcmyk(0%, 66.7%, 3.8%, 27.1%)
CIE-LABlab(48.44, 63.10, -37.17)
CIE-LCHlch(48.44, 73.23, 329.50°)
OKLaboklab(58.24% 0.1788 -0.1023)
OKLCHoklch(58.24% 0.206 330.2)
XYZxyz(30.1088, 17.1412, 44.3619)
Luminance0.1714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3EB3 #3EBA45
analogous
#833EBA #BA3EB3 #BA3E75
triadic
#BA3EB3 #B3BA3E #3EB3BA
tetradic
#BA3EB3 #BA833E #3EBA45 #3E75BA
square
#BA3EB3 #BA833E #3EBA45 #3E75BA
split-complementary
#BA3EB3 #75BA3E #3EBA83
monochromatic
#5E1F5B #8C2F87 #BA3EB3 #CD68C7 #DC96D8

Accessibility & contrast

On white

4.74
#BA3EB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#BA3EB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3EB3
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3EB3#FFFFFF#000000##FFFFFF
##BA3EB31.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3368B6
Deuteranopia (green-blind)
#6179B0
Tritanopia (blue-blind)
#C14C73
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba3eb3;
/* rgb */ color: rgb(186, 62, 179);
/* oklch */ color: oklch(58.2% 0.206 330.2);
Tailwind
colors: {
  custom: {
    50: '#d27dca',
    500: '#ba3eb3',
    950: '#000000',
  },
}
SCSS
$custom: #ba3eb3;
$custom-light: #d27dca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3eb3",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 179
  },
  "hsl": {
    "h": 303.387,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5824,
    "c": 0.206,
    "h": 330.2
  },
  "luminance": 0.17139
}

Semantic roles & 50–950 ramp

primary
#BA3EB3
secondary
#8CC88F
accent
#DA564E
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA3EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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