#BA38BD#BA38BD

#BA38BD is a mid, highly saturated purple. Relative luminance 0.169; OKLCH L 58.2% C 0.221 H 327.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA38BD
RGBrgb(186, 56, 189)
HSLhsl(299, 54%, 48%)
HSVhsv(299, 70%, 74%)
CMYKcmyk(1.6%, 70.4%, 0%, 25.9%)
CIE-LABlab(48.19, 66.94, -43.40)
CIE-LCHlch(48.19, 79.78, 327.04°)
OKLaboklab(58.23% 0.1853 -0.1204)
OKLCHoklch(58.23% 0.221 327)
XYZxyz(30.8487, 16.9437, 49.7799)
Luminance0.1694 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38BD #3BBD38
analogous
#7838BD #BA38BD #BD387D
triadic
#BA38BD #BDBA38 #38BDBA
tetradic
#BA38BD #BD7838 #3BBD38 #387DBD
square
#BA38BD #BD7838 #3BBD38 #387DBD
split-complementary
#BA38BD #7DBD38 #38BD78
monochromatic
#5D1C5F #8C2A8E #BA38BD #CE62D0 #DD91DE

Accessibility & contrast

On white

4.79
#BA38BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#BA38BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38BD
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38BD#FFFFFF#000000##FFFFFF
##BA38BD1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D68C1
Deuteranopia (green-blind)
#5878BA
Tritanopia (blue-blind)
#BF4D77
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba38bd;
/* rgb */ color: rgb(186, 56, 189);
/* oklch */ color: oklch(58.2% 0.221 327.0);
Tailwind
colors: {
  custom: {
    50: '#d27bd1',
    500: '#ba38bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba38bd;
$custom-light: #d27bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38bd",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 298.647,
    "s": 54.286,
    "l": 48.039
  },
  "oklch": {
    "l": 0.58232,
    "c": 0.22098,
    "h": 327
  },
  "luminance": 0.16942
}

Semantic roles & 50–950 ramp

primary
#BA38BD
secondary
#89C987
accent
#DE4A4D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA38BD

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

Preview Lab → · Contrast checker → · Palette generator →

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