#BA30BA#BA30BA

#BA30BA is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.227 H 328.0°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#BA30BA
RGBrgb(186, 48, 186)
HSLhsl(300, 59%, 46%)
HSVhsv(300, 74%, 73%)
CMYKcmyk(0%, 74.2%, 0%, 27.1%)
CIE-LABlab(47.11, 69.06, -43.37)
CIE-LCHlch(47.11, 81.55, 327.87°)
OKLaboklab(57.4% 0.1927 -0.1202)
OKLCHoklch(57.4% 0.227 328)
XYZxyz(30.1692, 16.1004, 47.9635)
Luminance0.1610 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30BA #30BA30
analogous
#7530BA #BA30BA #BA3075
triadic
#BA30BA #BABA30 #30BABA
tetradic
#BA30BA #BA7530 #30BA30 #3075BA
square
#BA30BA #BA7530 #30BA30 #3075BA
split-complementary
#BA30BA #75BA30 #30BA75
monochromatic
#591759 #892389 #BA30BA #D354D3 #DF85DF

Accessibility & contrast

On white

4.98
#BA30BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#BA30BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30BA
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30BA#FFFFFF#000000##FFFFFF
##BA30BA1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1064BE
Deuteranopia (green-blind)
#5676B7
Tritanopia (blue-blind)
#C04673
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba30ba;
/* rgb */ color: rgb(186, 48, 186);
/* oklch */ color: oklch(57.4% 0.227 328.0);
Tailwind
colors: {
  custom: {
    50: '#d377cf',
    500: '#ba30ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba30ba;
$custom-light: #d377cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30ba",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.57403,
    "c": 0.22715,
    "h": 328
  },
  "luminance": 0.16098
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA30BA

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

Preview Lab → · Contrast checker → · Palette generator →

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