#BA39A8#BA39A8

#BA39A8 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.2% C 0.204 H 334.1°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA39A8
RGBrgb(186, 57, 168)
HSLhsl(308, 53%, 48%)
HSVhsv(308, 69%, 73%)
CMYKcmyk(0%, 69.4%, 9.7%, 27.1%)
CIE-LABlab(47.23, 63.22, -32.59)
CIE-LCHlch(47.23, 71.12, 332.73°)
OKLaboklab(57.19% 0.1833 -0.0891)
OKLCHoklch(57.19% 0.204 334.1)
XYZxyz(28.7809, 16.1949, 38.6483)
Luminance0.1619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA39A8 #39BA4B
analogous
#8B39BA #BA39A8 #BA3968
triadic
#BA39A8 #A8BA39 #39A8BA
tetradic
#BA39A8 #BA8B39 #39BA4B #3968BA
square
#BA39A8 #BA8B39 #39BA4B #3968BA
split-complementary
#BA39A8 #68BA39 #39BA8B
monochromatic
#5C1C53 #8B2B7E #BA39A8 #CF61BF #DD90D2

Accessibility & contrast

On white

4.95
#BA39A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#BA39A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA39A8
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA39A8#FFFFFF#000000##FFFFFF
##BA39A81.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3764AB
Deuteranopia (green-blind)
#6477A5
Tritanopia (blue-blind)
#C3446C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba39a8;
/* rgb */ color: rgb(186, 57, 168);
/* oklch */ color: oklch(57.2% 0.204 334.1);
Tailwind
colors: {
  custom: {
    50: '#d27ac2',
    500: '#ba39a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba39a8;
$custom-light: #d27ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba39a8",
  "rgb": {
    "r": 186,
    "g": 57,
    "b": 168
  },
  "hsl": {
    "h": 308.372,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.57189,
    "c": 0.20383,
    "h": 334.1
  },
  "luminance": 0.16193
}

Semantic roles & 50–950 ramp

primary
#BA39A8
secondary
#87C890
accent
#DC604B
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA39A8

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

Preview Lab → · Contrast checker → · Palette generator →

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