#BA30A5#BA30A5

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

Color values

HEX#BA30A5
RGBrgb(186, 48, 165)
HSLhsl(309, 59%, 46%)
HSVhsv(309, 74%, 73%)
CMYKcmyk(0%, 74.2%, 11.3%, 27.1%)
CIE-LABlab(46.00, 65.82, -32.73)
CIE-LCHlch(46.00, 73.51, 333.56°)
OKLaboklab(56.26% 0.1921 -0.0895)
OKLCHoklch(56.26% 0.212 335)
XYZxyz(28.0985, 15.2721, 37.0580)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30A5 #30BA45
analogous
#8A30BA #BA30A5 #BA3060
triadic
#BA30A5 #A5BA30 #30A5BA
tetradic
#BA30A5 #BA8A30 #30BA45 #3060BA
square
#BA30A5 #BA8A30 #30BA45 #3060BA
split-complementary
#BA30A5 #60BA30 #30BA8A
monochromatic
#59174F #89237A #BA30A5 #D354C0 #DF85D2

Accessibility & contrast

On white

5.18
#BA30A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#BA30A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30A5
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30A5#FFFFFF#000000##FFFFFF
##BA30A51.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba30a5;
/* rgb */ color: rgb(186, 48, 165);
/* oklch */ color: oklch(56.3% 0.212 335.0);
Tailwind
colors: {
  custom: {
    50: '#d376c0',
    500: '#ba30a5',
    950: '#000000',
  },
}
SCSS
$custom: #ba30a5;
$custom-light: #d376c0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30a5",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 165
  },
  "hsl": {
    "h": 309.13,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56257,
    "c": 0.21188,
    "h": 335
  },
  "luminance": 0.1527
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA30A5

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

Preview Lab → · Contrast checker → · Palette generator →

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