#BA30A6#BA30A6

#BA30A6 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.3% C 0.213 H 334.7°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA30A6
RGBrgb(186, 48, 166)
HSLhsl(309, 59%, 46%)
HSVhsv(309, 74%, 73%)
CMYKcmyk(0%, 74.2%, 10.8%, 27.1%)
CIE-LABlab(46.05, 65.97, -33.25)
CIE-LCHlch(46.05, 73.87, 333.25°)
OKLaboklab(56.31% 0.1921 -0.0909)
OKLCHoklch(56.31% 0.213 334.7)
XYZxyz(28.1899, 15.3087, 37.5392)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30A6 #30BA44
analogous
#8930BA #BA30A6 #BA3061
triadic
#BA30A6 #A6BA30 #30A6BA
tetradic
#BA30A6 #BA8930 #30BA44 #3061BA
square
#BA30A6 #BA8930 #30BA44 #3061BA
split-complementary
#BA30A6 #61BA30 #30BA89
monochromatic
#59174F #89237B #BA30A6 #D354C1 #DF85D2

Accessibility & contrast

On white

5.17
#BA30A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#BA30A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30A6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30A6#FFFFFF#000000##FFFFFF
##BA30A61.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E60A9
Deuteranopia (green-blind)
#6174A3
Tritanopia (blue-blind)
#C33C68
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba30a6;
/* rgb */ color: rgb(186, 48, 166);
/* oklch */ color: oklch(56.3% 0.213 334.7);
Tailwind
colors: {
  custom: {
    50: '#d376c1',
    500: '#ba30a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba30a6;
$custom-light: #d376c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30a6",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 166
  },
  "hsl": {
    "h": 308.696,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56309,
    "c": 0.21257,
    "h": 334.7
  },
  "luminance": 0.15306
}

Semantic roles & 50–950 ramp

primary
#BA30A6
secondary
#7DC988
accent
#E25C46
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA30A6

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

Preview Lab → · Contrast checker → · Palette generator →

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