#BA38BB#BA38BB

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

Color values

HEX#BA38BB
RGBrgb(186, 56, 187)
HSLhsl(300, 54%, 48%)
HSVhsv(300, 70%, 73%)
CMYKcmyk(0.5%, 70.1%, 0%, 26.7%)
CIE-LABlab(48.08, 66.60, -42.41)
CIE-LCHlch(48.08, 78.96, 327.51°)
OKLaboklab(58.12% 0.1853 -0.1175)
OKLCHoklch(58.12% 0.219 327.6)
XYZxyz(30.6331, 16.8575, 48.6444)
Luminance0.1686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38BB #39BB38
analogous
#7838BB #BA38BB #BB387A
triadic
#BA38BB #BBBA38 #38BBBA
tetradic
#BA38BB #BB7838 #39BB38 #387ABB
square
#BA38BB #BB7838 #39BB38 #387ABB
split-complementary
#BA38BB #7ABB38 #38BB78
monochromatic
#5C1C5D #8B2A8C #BA38BB #CF61D0 #DD90DE

Accessibility & contrast

On white

4.80
#BA38BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#BA38BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38BB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38BB#FFFFFF#000000##FFFFFF
##BA38BB1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2067BF
Deuteranopia (green-blind)
#5A78B8
Tritanopia (blue-blind)
#C04C76
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba38bb;
/* rgb */ color: rgb(186, 56, 187);
/* oklch */ color: oklch(58.1% 0.219 327.6);
Tailwind
colors: {
  custom: {
    50: '#d27bd0',
    500: '#ba38bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba38bb;
$custom-light: #d27bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38bb",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 187
  },
  "hsl": {
    "h": 299.542,
    "s": 53.909,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58118,
    "c": 0.21941,
    "h": 327.6
  },
  "luminance": 0.16855
}

Semantic roles & 50–950 ramp

primary
#BA38BB
secondary
#87C886
accent
#DD4B4C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA38BB

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

Preview Lab → · Contrast checker → · Palette generator →

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