#BA38C3#BA38C3

#BA38C3 is a mid, highly saturated purple. Relative luminance 0.172; OKLCH L 58.6% C 0.226 H 325.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA38C3
RGBrgb(186, 56, 195)
HSLhsl(296, 55%, 49%)
HSVhsv(296, 71%, 76%)
CMYKcmyk(4.6%, 71.3%, 0%, 23.5%)
CIE-LABlab(48.52, 67.95, -46.36)
CIE-LCHlch(48.52, 82.25, 325.70°)
OKLaboklab(58.58% 0.1853 -0.129)
OKLCHoklch(58.58% 0.226 325.2)
XYZxyz(31.5135, 17.2096, 53.2811)
Luminance0.1721 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38C3 #41C338
analogous
#7538C3 #BA38C3 #C33887
triadic
#BA38C3 #C3BA38 #38C3BA
tetradic
#BA38C3 #C37538 #41C338 #3887C3
square
#BA38C3 #C37538 #41C338 #3887C3
split-complementary
#BA38C3 #87C338 #38C375
monochromatic
#5F1D64 #8D2A93 #BA38C3 #CC65D3 #DC95E1

Accessibility & contrast

On white

4.73
#BA38C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#BA38C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38C3
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38C3#FFFFFF#000000##FFFFFF
##BA38C31.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F69C7
Deuteranopia (green-blind)
#5579C0
Tritanopia (blue-blind)
#BE4F7A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba38c3;
/* rgb */ color: rgb(186, 56, 195);
/* oklch */ color: oklch(58.6% 0.226 325.2);
Tailwind
colors: {
  custom: {
    50: '#d37bd6',
    500: '#ba38c3',
    950: '#000000',
  },
}
SCSS
$custom: #ba38c3;
$custom-light: #d37bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38c3",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 195
  },
  "hsl": {
    "h": 296.115,
    "s": 55.378,
    "l": 49.216
  },
  "oklch": {
    "l": 0.58578,
    "c": 0.22573,
    "h": 325.2
  },
  "luminance": 0.17208
}

Semantic roles & 50–950 ramp

primary
#BA38C3
secondary
#8FCC8B
accent
#DF4953
background
#FDF7FD
surface
#FAEEFA
border
#D3C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA38C3

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

Preview Lab → · Contrast checker → · Palette generator →

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