#BA30AC#BA30AC

#BA30AC is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.217 H 332.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA30AC
RGBrgb(186, 48, 172)
HSLhsl(306, 59%, 46%)
HSVhsv(306, 74%, 73%)
CMYKcmyk(0%, 74.2%, 7.5%, 27.1%)
CIE-LABlab(46.36, 66.87, -36.33)
CIE-LCHlch(46.36, 76.10, 331.49°)
OKLaboklab(56.63% 0.1925 -0.0998)
OKLCHoklch(56.63% 0.217 332.6)
XYZxyz(28.7532, 15.5340, 40.5057)
Luminance0.1553 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30AC #30BA3E
analogous
#8330BA #BA30AC #BA3067
triadic
#BA30AC #ACBA30 #30ACBA
tetradic
#BA30AC #BA8330 #30BA3E #3067BA
square
#BA30AC #BA8330 #30BA3E #3067BA
split-complementary
#BA30AC #67BA30 #30BA83
monochromatic
#591752 #89237F #BA30AC #D354C6 #DF85D6

Accessibility & contrast

On white

5.11
#BA30AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA30AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30AC
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30AC#FFFFFF#000000##FFFFFF
##BA30AC1.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2861AF
Deuteranopia (green-blind)
#5E75A9
Tritanopia (blue-blind)
#C23F6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba30ac;
/* rgb */ color: rgb(186, 48, 172);
/* oklch */ color: oklch(56.6% 0.217 332.6);
Tailwind
colors: {
  custom: {
    50: '#d377c5',
    500: '#ba30ac',
    950: '#000000',
  },
}
SCSS
$custom: #ba30ac;
$custom-light: #d377c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30ac",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 172
  },
  "hsl": {
    "h": 306.087,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56625,
    "c": 0.21683,
    "h": 332.6
  },
  "luminance": 0.15532
}

Semantic roles & 50–950 ramp

primary
#BA30AC
secondary
#7DC985
accent
#E25646
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA30AC

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

Preview Lab → · Contrast checker → · Palette generator →

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