#BA38C1#BA38C1

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

Color values

HEX#BA38C1
RGBrgb(186, 56, 193)
HSLhsl(297, 55%, 49%)
HSVhsv(297, 71%, 76%)
CMYKcmyk(3.6%, 71%, 0%, 24.3%)
CIE-LABlab(48.41, 67.61, -45.38)
CIE-LCHlch(48.41, 81.42, 326.13°)
OKLaboklab(58.46% 0.1853 -0.1261)
OKLCHoklch(58.46% 0.224 325.8)
XYZxyz(31.2889, 17.1198, 52.0982)
Luminance0.1712 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38C1 #3FC138
analogous
#7638C1 #BA38C1 #C13884
triadic
#BA38C1 #C1BA38 #38C1BA
tetradic
#BA38C1 #C17638 #3FC138 #3884C1
square
#BA38C1 #C17638 #3FC138 #3884C1
split-complementary
#BA38C1 #84C138 #38C176
monochromatic
#5F1C62 #8C2A92 #BA38C1 #CC64D2 #DC94E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA38C1#FFFFFF#000000##FFFFFF
##BA38C11.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)
#1469C5
Deuteranopia (green-blind)
#5678BE
Tritanopia (blue-blind)
#BF4E79
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba38c1;
/* rgb */ color: rgb(186, 56, 193);
/* oklch */ color: oklch(58.5% 0.224 325.8);
Tailwind
colors: {
  custom: {
    50: '#d27bd4',
    500: '#ba38c1',
    950: '#000000',
  },
}
SCSS
$custom: #ba38c1;
$custom-light: #d27bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38c1",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 193
  },
  "hsl": {
    "h": 296.934,
    "s": 55.02,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58462,
    "c": 0.22414,
    "h": 325.8
  },
  "luminance": 0.17118
}

Semantic roles & 50–950 ramp

primary
#BA38C1
secondary
#8DCB8A
accent
#DE4951
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA38C1

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

Preview Lab → · Contrast checker → · Palette generator →

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