#BA38C9#BA38C9

#BA38C9 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.9% C 0.231 H 323.4°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#BA38C9
RGBrgb(186, 56, 201)
HSLhsl(294, 57%, 50%)
HSVhsv(294, 72%, 79%)
CMYKcmyk(7.5%, 72.1%, 0%, 21.2%)
CIE-LABlab(48.87, 68.98, -49.28)
CIE-LCHlch(48.87, 84.77, 324.46°)
OKLaboklab(58.94% 0.1851 -0.1375)
OKLCHoklch(58.94% 0.231 323.4)
XYZxyz(32.2055, 17.4864, 56.9259)
Luminance0.1748 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38C9 #47C938
analogous
#7138C9 #BA38C9 #C9388F
triadic
#BA38C9 #C9BA38 #38C9BA
tetradic
#BA38C9 #C97138 #47C938 #388FC9
square
#BA38C9 #C97138 #47C938 #388FC9
split-complementary
#BA38C9 #8FC938 #38C971
monochromatic
#621D6A #8E2A9A #BA38C9 #CB68D6 #DB98E3

Accessibility & contrast

On white

4.67
#BA38C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#BA38C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38C9
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38C9#FFFFFF#000000##FFFFFF
##BA38C91.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACD
Deuteranopia (green-blind)
#5079C6
Tritanopia (blue-blind)
#BD527E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba38c9;
/* rgb */ color: rgb(186, 56, 201);
/* oklch */ color: oklch(58.9% 0.231 323.4);
Tailwind
colors: {
  custom: {
    50: '#d37bda',
    500: '#ba38c9',
    950: '#000000',
  },
}
SCSS
$custom: #ba38c9;
$custom-light: #d37bda;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38c9",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 201
  },
  "hsl": {
    "h": 293.793,
    "s": 57.312,
    "l": 50.392
  },
  "oklch": {
    "l": 0.58935,
    "c": 0.23054,
    "h": 323.4
  },
  "luminance": 0.17484
}

Semantic roles & 50–950 ramp

primary
#BA38C9
secondary
#95CF8E
accent
#E14757
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA38C9

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

Preview Lab → · Contrast checker → · Palette generator →

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