#BA38BA#BA38BA

#BA38BA is a mid, highly saturated purple. Relative luminance 0.168; OKLCH L 58.1% C 0.219 H 327.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BA38BA
RGBrgb(186, 56, 186)
HSLhsl(300, 54%, 47%)
HSVhsv(300, 70%, 73%)
CMYKcmyk(0%, 69.9%, 0%, 27.1%)
CIE-LABlab(48.03, 66.44, -41.91)
CIE-LCHlch(48.03, 78.55, 327.75°)
OKLaboklab(58.06% 0.1853 -0.116)
OKLCHoklch(58.06% 0.219 327.9)
XYZxyz(30.5264, 16.8148, 48.0826)
Luminance0.1681 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38BA #38BA38
analogous
#7938BA #BA38BA #BA3879
triadic
#BA38BA #BABA38 #38BABA
tetradic
#BA38BA #BA7938 #38BA38 #3879BA
square
#BA38BA #BA7938 #38BA38 #3879BA
split-complementary
#BA38BA #79BA38 #38BA79
monochromatic
#5C1C5C #8B2A8B #BA38BA #CF60CF #DD8FDD

Accessibility & contrast

On white

4.81
#BA38BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#BA38BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38BA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38BA#FFFFFF#000000##FFFFFF
##BA38BA1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2267BE
Deuteranopia (green-blind)
#5A78B7
Tritanopia (blue-blind)
#C04B75
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba38ba;
/* rgb */ color: rgb(186, 56, 186);
/* oklch */ color: oklch(58.1% 0.219 327.9);
Tailwind
colors: {
  custom: {
    50: '#d27bcf',
    500: '#ba38ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba38ba;
$custom-light: #d27bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38ba",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.58062,
    "c": 0.21863,
    "h": 327.9
  },
  "luminance": 0.16813
}

Semantic roles & 50–950 ramp

primary
#BA38BA
secondary
#86C886
accent
#DD4B4B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA38BA

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

Preview Lab → · Contrast checker → · Palette generator →

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