#BA30A9#BA30A9

#BA30A9 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.215 H 333.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA30A9
RGBrgb(186, 48, 169)
HSLhsl(307, 59%, 46%)
HSVhsv(307, 74%, 73%)
CMYKcmyk(0%, 74.2%, 9.1%, 27.1%)
CIE-LABlab(46.20, 66.42, -34.79)
CIE-LCHlch(46.20, 74.98, 332.35°)
OKLaboklab(56.47% 0.1923 -0.0954)
OKLCHoklch(56.47% 0.215 333.6)
XYZxyz(28.4683, 15.4200, 39.0054)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30A9 #30BA41
analogous
#8630BA #BA30A9 #BA3064
triadic
#BA30A9 #A9BA30 #30A9BA
tetradic
#BA30A9 #BA8630 #30BA41 #3064BA
square
#BA30A9 #BA8630 #30BA41 #3064BA
split-complementary
#BA30A9 #64BA30 #30BA86
monochromatic
#591751 #89237D #BA30A9 #D354C3 #DF85D4

Accessibility & contrast

On white

5.14
#BA30A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BA30A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30A9
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30A9#FFFFFF#000000##FFFFFF
##BA30A91.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B61AC
Deuteranopia (green-blind)
#5F74A6
Tritanopia (blue-blind)
#C33E6A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba30a9;
/* rgb */ color: rgb(186, 48, 169);
/* oklch */ color: oklch(56.5% 0.215 333.6);
Tailwind
colors: {
  custom: {
    50: '#d377c3',
    500: '#ba30a9',
    950: '#000000',
  },
}
SCSS
$custom: #ba30a9;
$custom-light: #d377c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30a9",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 169
  },
  "hsl": {
    "h": 307.391,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56466,
    "c": 0.21469,
    "h": 333.6
  },
  "luminance": 0.15418
}

Semantic roles & 50–950 ramp

primary
#BA30A9
secondary
#7DC986
accent
#E25946
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA30A9

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

Preview Lab → · Contrast checker → · Palette generator →

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