#BA38B7#BA38B7

#BA38B7 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 57.9% C 0.216 H 328.9°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA38B7
RGBrgb(186, 56, 183)
HSLhsl(301, 54%, 47%)
HSVhsv(301, 70%, 73%)
CMYKcmyk(0%, 69.9%, 1.6%, 27.1%)
CIE-LABlab(47.87, 65.95, -40.41)
CIE-LCHlch(47.87, 77.35, 328.50°)
OKLaboklab(57.89% 0.1852 -0.1117)
OKLCHoklch(57.89% 0.216 328.9)
XYZxyz(30.2108, 16.6886, 46.4206)
Luminance0.1669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA38B7 #38BA3B
analogous
#7C38BA #BA38B7 #BA3876
triadic
#BA38B7 #B7BA38 #38B7BA
tetradic
#BA38B7 #BA7C38 #38BA3B #3876BA
square
#BA38B7 #BA7C38 #38BA3B #3876BA
split-complementary
#BA38B7 #76BA38 #38BA7C
monochromatic
#5C1C5A #8B2A89 #BA38B7 #CF60CD #DD8FDC

Accessibility & contrast

On white

4.84
#BA38B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#BA38B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA38B7
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA38B7#FFFFFF#000000##FFFFFF
##BA38B71.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2667BB
Deuteranopia (green-blind)
#5C78B4
Tritanopia (blue-blind)
#C04A74
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba38b7;
/* rgb */ color: rgb(186, 56, 183);
/* oklch */ color: oklch(57.9% 0.216 328.9);
Tailwind
colors: {
  custom: {
    50: '#d27acd',
    500: '#ba38b7',
    950: '#000000',
  },
}
SCSS
$custom: #ba38b7;
$custom-light: #d27acd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba38b7",
  "rgb": {
    "r": 186,
    "g": 56,
    "b": 183
  },
  "hsl": {
    "h": 301.385,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.57894,
    "c": 0.21631,
    "h": 328.9
  },
  "luminance": 0.16686
}

Semantic roles & 50–950 ramp

primary
#BA38B7
secondary
#86C887
accent
#DD4E4B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA38B7

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

Preview Lab → · Contrast checker → · Palette generator →

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