#BA38B1#BA38B1

#BA38B1 is a mid, highly saturated purple. Relative luminance 0.164; OKLCH L 57.6% C 0.212 H 330.9°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BA38B1
RGBrgb(186, 56, 177)
HSLhsl(304, 54%, 47%)
HSVhsv(304, 70%, 73%)
CMYKcmyk(0%, 69.9%, 4.8%, 27.1%)
CIE-LABlab(47.55, 64.98, -37.39)
CIE-LCHlch(47.55, 74.97, 330.08°)
OKLaboklab(57.57% 0.185 -0.1029)
OKLCHoklch(57.57% 0.212 330.9)
XYZxyz(29.5996, 16.4441, 43.2015)
Luminance0.1644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38B1 #38BA41
analogous
#8238BA #BA38B1 #BA3870
triadic
#BA38B1 #B1BA38 #38B1BA
tetradic
#BA38B1 #BA8238 #38BA41 #3870BA
square
#BA38B1 #BA8238 #38BA41 #3870BA
split-complementary
#BA38B1 #70BA38 #38BA82
monochromatic
#5C1C57 #8B2A84 #BA38B1 #CF60C7 #DD8FD8

Accessibility & contrast

On white

4.90
#BA38B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BA38B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38B1
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38B1#FFFFFF#000000##FFFFFF
##BA38B11.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D65B4
Deuteranopia (green-blind)
#5F77AE
Tritanopia (blue-blind)
#C14770
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba38b1;
/* rgb */ color: rgb(186, 56, 177);
/* oklch */ color: oklch(57.6% 0.212 330.9);
Tailwind
colors: {
  custom: {
    50: '#d27ac9',
    500: '#ba38b1',
    950: '#000000',
  },
}
SCSS
$custom: #ba38b1;
$custom-light: #d27ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38b1",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 304.154,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57567,
    "c": 0.21172,
    "h": 330.9
  },
  "luminance": 0.16442
}

Semantic roles & 50–950 ramp

primary
#BA38B1
secondary
#86C88A
accent
#DD554B
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38B1

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

Preview Lab → · Contrast checker → · Palette generator →

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