#BA30BB#BA30BB

#BA30BB is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.5% C 0.228 H 327.7°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA30BB
RGBrgb(186, 48, 187)
HSLhsl(300, 59%, 46%)
HSVhsv(300, 74%, 73%)
CMYKcmyk(0.5%, 74.3%, 0%, 26.7%)
CIE-LABlab(47.16, 69.22, -43.87)
CIE-LCHlch(47.16, 81.95, 327.64°)
OKLaboklab(57.46% 0.1927 -0.1217)
OKLCHoklch(57.46% 0.228 327.7)
XYZxyz(30.2759, 16.1431, 48.5254)
Luminance0.1614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30BB #31BB30
analogous
#7430BB #BA30BB #BB3076
triadic
#BA30BB #BBBA30 #30BBBA
tetradic
#BA30BB #BB7430 #31BB30 #3076BB
square
#BA30BB #BB7430 #31BB30 #3076BB
split-complementary
#BA30BB #76BB30 #30BB74
monochromatic
#59175A #8A238A #BA30BB #D255D3 #DF86E0

Accessibility & contrast

On white

4.97
#BA30BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#BA30BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30BB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30BB#FFFFFF#000000##FFFFFF
##BA30BB1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D64BF
Deuteranopia (green-blind)
#5676B8
Tritanopia (blue-blind)
#C04774
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba30bb;
/* rgb */ color: rgb(186, 48, 187);
/* oklch */ color: oklch(57.5% 0.228 327.7);
Tailwind
colors: {
  custom: {
    50: '#d377d0',
    500: '#ba30bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba30bb;
$custom-light: #d377d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30bb",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 187
  },
  "hsl": {
    "h": 299.568,
    "s": 59.149,
    "l": 46.078
  },
  "oklch": {
    "l": 0.57461,
    "c": 0.2279,
    "h": 327.7
  },
  "luminance": 0.16141
}

Semantic roles & 50–950 ramp

primary
#BA30BB
secondary
#7EC97D
accent
#E24547
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA30BB

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

Preview Lab → · Contrast checker → · Palette generator →

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