#BA30B9#BA30B9

#BA30B9 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.3% C 0.226 H 328.4°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA30B9
RGBrgb(186, 48, 185)
HSLhsl(300, 59%, 46%)
HSVhsv(300, 74%, 73%)
CMYKcmyk(0%, 74.2%, 0.5%, 27.1%)
CIE-LABlab(47.05, 68.90, -42.88)
CIE-LCHlch(47.05, 81.15, 328.11°)
OKLaboklab(57.35% 0.1927 -0.1188)
OKLCHoklch(57.35% 0.226 328.4)
XYZxyz(30.0633, 16.0580, 47.4056)
Luminance0.1606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30B9 #30BA31
analogous
#7630BA #BA30B9 #BA3074
triadic
#BA30B9 #B9BA30 #30B9BA
tetradic
#BA30B9 #BA7630 #30BA31 #3074BA
square
#BA30B9 #BA7630 #30BA31 #3074BA
split-complementary
#BA30B9 #74BA30 #30BA76
monochromatic
#591758 #892389 #BA30B9 #D354D2 #DF85DF

Accessibility & contrast

On white

4.99
#BA30B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#BA30B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30B9
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30B9#FFFFFF#000000##FFFFFF
##BA30B91.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1364BD
Deuteranopia (green-blind)
#5776B6
Tritanopia (blue-blind)
#C04673
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba30b9;
/* rgb */ color: rgb(186, 48, 185);
/* oklch */ color: oklch(57.3% 0.226 328.4);
Tailwind
colors: {
  custom: {
    50: '#d377ce',
    500: '#ba30b9',
    950: '#000000',
  },
}
SCSS
$custom: #ba30b9;
$custom-light: #d377ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30b9",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 185
  },
  "hsl": {
    "h": 300.435,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57346,
    "c": 0.2264,
    "h": 328.4
  },
  "luminance": 0.16056
}

Semantic roles & 50–950 ramp

primary
#BA30B9
secondary
#7DC97D
accent
#E24746
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA30B9

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

Preview Lab → · Contrast checker → · Palette generator →

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