#BA30BC#BA30BC

#BA30BC is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 57.5% C 0.229 H 327.4°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BA30BC
RGBrgb(186, 48, 188)
HSLhsl(299, 59%, 46%)
HSVhsv(299, 74%, 74%)
CMYKcmyk(1.1%, 74.5%, 0%, 26.3%)
CIE-LABlab(47.22, 69.39, -44.36)
CIE-LCHlch(47.22, 82.36, 327.41°)
OKLaboklab(57.52% 0.1927 -0.1231)
OKLCHoklch(57.52% 0.229 327.4)
XYZxyz(30.3833, 16.1860, 49.0911)
Luminance0.1618 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30BC #32BC30
analogous
#7430BC #BA30BC #BC3078
triadic
#BA30BC #BCBA30 #30BCBA
tetradic
#BA30BC #BC7430 #32BC30 #3078BC
square
#BA30BC #BC7430 #32BC30 #3078BC
split-complementary
#BA30BC #78BC30 #30BC74
monochromatic
#5A175A #8A248B #BA30BC #D255D4 #DF86E0

Accessibility & contrast

On white

4.96
#BA30BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA30BC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30BC#FFFFFF#000000##FFFFFF
##BA30BC1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0965C0
Deuteranopia (green-blind)
#5576B9
Tritanopia (blue-blind)
#C04774
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba30bc;
/* rgb */ color: rgb(186, 48, 188);
/* oklch */ color: oklch(57.5% 0.229 327.4);
Tailwind
colors: {
  custom: {
    50: '#d377d1',
    500: '#ba30bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba30bc;
$custom-light: #d377d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30bc",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 188
  },
  "hsl": {
    "h": 299.143,
    "s": 59.322,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57519,
    "c": 0.22865,
    "h": 327.4
  },
  "luminance": 0.16184
}

Semantic roles & 50–950 ramp

primary
#BA30BC
secondary
#7FCA7E
accent
#E34548
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA30BC

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

Preview Lab → · Contrast checker → · Palette generator →

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