#BA39B8#BA39B8

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

Color values

HEX#BA39B8
RGBrgb(186, 57, 184)
HSLhsl(301, 53%, 48%)
HSVhsv(301, 69%, 73%)
CMYKcmyk(0%, 69.4%, 1.1%, 27.1%)
CIE-LABlab(48.04, 65.76, -40.72)
CIE-LCHlch(48.04, 77.34, 328.23°)
OKLaboklab(58.04% 0.1843 -0.1126)
OKLCHoklch(58.04% 0.216 328.6)
XYZxyz(30.3642, 16.8282, 46.9870)
Luminance0.1683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39B8 #39BA3B
analogous
#7B39BA #BA39B8 #BA3978
triadic
#BA39B8 #B8BA39 #39B8BA
tetradic
#BA39B8 #BA7B39 #39BA3B #3978BA
square
#BA39B8 #BA7B39 #39BA3B #3978BA
split-complementary
#BA39B8 #78BA39 #39BA7B
monochromatic
#5C1C5B #8B2B8A #BA39B8 #CF61CD #DD90DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA39B8#FFFFFF#000000##FFFFFF
##BA39B81.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2667BC
Deuteranopia (green-blind)
#5C78B5
Tritanopia (blue-blind)
#C04B75
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba39b8;
/* rgb */ color: rgb(186, 57, 184);
/* oklch */ color: oklch(58.0% 0.216 328.6);
Tailwind
colors: {
  custom: {
    50: '#d27bce',
    500: '#ba39b8',
    950: '#000000',
  },
}
SCSS
$custom: #ba39b8;
$custom-light: #d27bce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39b8",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 300.93,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.58039,
    "c": 0.21593,
    "h": 328.6
  },
  "luminance": 0.16826
}

Semantic roles & 50–950 ramp

primary
#BA39B8
secondary
#87C888
accent
#DC4E4B
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA39B8

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

Preview Lab → · Contrast checker → · Palette generator →

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