#BA30AB#BA30AB

#BA30AB is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.216 H 332.9°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA30AB
RGBrgb(186, 48, 171)
HSLhsl(307, 59%, 46%)
HSVhsv(307, 74%, 73%)
CMYKcmyk(0%, 74.2%, 8.1%, 27.1%)
CIE-LABlab(46.31, 66.72, -35.82)
CIE-LCHlch(46.31, 75.72, 331.77°)
OKLaboklab(56.57% 0.1925 -0.0983)
OKLCHoklch(56.57% 0.216 332.9)
XYZxyz(28.6575, 15.4957, 40.0018)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30AB #30BA3F
analogous
#8430BA #BA30AB #BA3066
triadic
#BA30AB #ABBA30 #30ABBA
tetradic
#BA30AB #BA8430 #30BA3F #3066BA
square
#BA30AB #BA8430 #30BA3F #3066BA
split-complementary
#BA30AB #66BA30 #30BA84
monochromatic
#591752 #89237E #BA30AB #D354C5 #DF85D6

Accessibility & contrast

On white

5.12
#BA30AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA30AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30AB
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30AB#FFFFFF#000000##FFFFFF
##BA30AB1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2961AE
Deuteranopia (green-blind)
#5E75A8
Tritanopia (blue-blind)
#C23F6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba30ab;
/* rgb */ color: rgb(186, 48, 171);
/* oklch */ color: oklch(56.6% 0.216 332.9);
Tailwind
colors: {
  custom: {
    50: '#d377c4',
    500: '#ba30ab',
    950: '#000000',
  },
}
SCSS
$custom: #ba30ab;
$custom-light: #d377c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30ab",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 171
  },
  "hsl": {
    "h": 306.522,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56572,
    "c": 0.21612,
    "h": 332.9
  },
  "luminance": 0.15493
}

Semantic roles & 50–950 ramp

primary
#BA30AB
secondary
#7DC985
accent
#E25746
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA30AB

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

Preview Lab → · Contrast checker → · Palette generator →

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