#BA38C5#BA38C5

#BA38C5 is a mid, highly saturated purple. Relative luminance 0.173; OKLCH L 58.7% C 0.227 H 324.6°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA38C5
RGBrgb(186, 56, 197)
HSLhsl(295, 56%, 50%)
HSVhsv(295, 72%, 77%)
CMYKcmyk(5.6%, 71.6%, 0%, 22.7%)
CIE-LABlab(48.64, 68.29, -47.33)
CIE-LCHlch(48.64, 83.09, 325.27°)
OKLaboklab(58.7% 0.1852 -0.1318)
OKLCHoklch(58.7% 0.227 324.6)
XYZxyz(31.7411, 17.3007, 54.4800)
Luminance0.1730 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38C5 #43C538
analogous
#7438C5 #BA38C5 #C5388A
triadic
#BA38C5 #C5BA38 #38C5BA
tetradic
#BA38C5 #C57438 #43C538 #388AC5
square
#BA38C5 #C57438 #43C538 #388AC5
split-complementary
#BA38C5 #8AC538 #38C574
monochromatic
#601D66 #8D2A95 #BA38C5 #CB67D4 #DB96E1

Accessibility & contrast

On white

4.71
#BA38C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#BA38C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38C5
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38C5#FFFFFF#000000##FFFFFF
##BA38C51.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076AC9
Deuteranopia (green-blind)
#5379C2
Tritanopia (blue-blind)
#BE507B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba38c5;
/* rgb */ color: rgb(186, 56, 197);
/* oklch */ color: oklch(58.7% 0.227 324.6);
Tailwind
colors: {
  custom: {
    50: '#d37bd7',
    500: '#ba38c5',
    950: '#000000',
  },
}
SCSS
$custom: #ba38c5;
$custom-light: #d37bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38c5",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 197
  },
  "hsl": {
    "h": 295.319,
    "s": 55.731,
    "l": 49.608
  },
  "oklch": {
    "l": 0.58696,
    "c": 0.22732,
    "h": 324.6
  },
  "luminance": 0.17299
}

Semantic roles & 50–950 ramp

primary
#BA38C5
secondary
#91CD8C
accent
#DF4954
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA38C5

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

Preview Lab → · Contrast checker → · Palette generator →

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