#BA38C7#BA38C7

#BA38C7 is a mid, highly saturated purple. Relative luminance 0.174; OKLCH L 58.8% C 0.229 H 324.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BA38C7
RGBrgb(186, 56, 199)
HSLhsl(295, 56%, 50%)
HSVhsv(295, 72%, 78%)
CMYKcmyk(6.5%, 71.9%, 0%, 22%)
CIE-LABlab(48.75, 68.63, -48.31)
CIE-LCHlch(48.75, 83.93, 324.86°)
OKLaboklab(58.82% 0.1851 -0.1346)
OKLCHoklch(58.82% 0.229 324)
XYZxyz(31.9718, 17.3929, 55.6949)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38C7 #45C738
analogous
#7238C7 #BA38C7 #C7388D
triadic
#BA38C7 #C7BA38 #38C7BA
tetradic
#BA38C7 #C77238 #45C738 #388DC7
square
#BA38C7 #C77238 #45C738 #388DC7
split-complementary
#BA38C7 #8DC738 #38C772
monochromatic
#611D67 #8D2B97 #BA38C7 #CB68D4 #DB98E2

Accessibility & contrast

On white

4.69
#BA38C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#BA38C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38C7
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38C7#FFFFFF#000000##FFFFFF
##BA38C71.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#5279C4
Tritanopia (blue-blind)
#BD517C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba38c7;
/* rgb */ color: rgb(186, 56, 199);
/* oklch */ color: oklch(58.8% 0.229 324.0);
Tailwind
colors: {
  custom: {
    50: '#d37bd8',
    500: '#ba38c7',
    950: '#000000',
  },
}
SCSS
$custom: #ba38c7;
$custom-light: #d37bd8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38c7",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 199
  },
  "hsl": {
    "h": 294.545,
    "s": 56.078,
    "l": 50
  },
  "oklch": {
    "l": 0.58815,
    "c": 0.22893,
    "h": 324
  },
  "luminance": 0.17391
}

Semantic roles & 50–950 ramp

primary
#BA38C7
secondary
#93CD8D
accent
#DF4856
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA38C7

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

Preview Lab → · Contrast checker → · Palette generator →

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