#BA30AA#BA30AA

#BA30AA is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.215 H 333.3°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#BA30AA
RGBrgb(186, 48, 170)
HSLhsl(307, 59%, 46%)
HSVhsv(307, 74%, 73%)
CMYKcmyk(0%, 74.2%, 8.6%, 27.1%)
CIE-LABlab(46.25, 66.57, -35.31)
CIE-LCHlch(46.25, 75.35, 332.06°)
OKLaboklab(56.52% 0.1924 -0.0969)
OKLCHoklch(56.52% 0.215 333.3)
XYZxyz(28.5625, 15.4577, 39.5017)
Luminance0.1545 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30AA #30BA40
analogous
#8530BA #BA30AA #BA3065
triadic
#BA30AA #AABA30 #30AABA
tetradic
#BA30AA #BA8530 #30BA40 #3065BA
square
#BA30AA #BA8530 #30BA40 #3065BA
split-complementary
#BA30AA #65BA30 #30BA85
monochromatic
#591751 #89237E #BA30AA #D354C4 #DF85D5

Accessibility & contrast

On white

5.13
#BA30AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#BA30AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30AA
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30AA#FFFFFF#000000##FFFFFF
##BA30AA1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A61AD
Deuteranopia (green-blind)
#5F75A7
Tritanopia (blue-blind)
#C23E6A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba30aa;
/* rgb */ color: rgb(186, 48, 170);
/* oklch */ color: oklch(56.5% 0.215 333.3);
Tailwind
colors: {
  custom: {
    50: '#d377c3',
    500: '#ba30aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba30aa;
$custom-light: #d377c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30aa",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 170
  },
  "hsl": {
    "h": 306.957,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56518,
    "c": 0.2154,
    "h": 333.3
  },
  "luminance": 0.15455
}

Semantic roles & 50–950 ramp

primary
#BA30AA
secondary
#7DC986
accent
#E25846
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA30AA

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

Preview Lab → · Contrast checker → · Palette generator →

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