#BA30A8#BA30A8

#BA30A8 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.4% C 0.214 H 334.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA30A8
RGBrgb(186, 48, 168)
HSLhsl(308, 59%, 46%)
HSVhsv(308, 74%, 73%)
CMYKcmyk(0%, 74.2%, 9.7%, 27.1%)
CIE-LABlab(46.15, 66.27, -34.28)
CIE-LCHlch(46.15, 74.61, 332.65°)
OKLaboklab(56.41% 0.1923 -0.0939)
OKLCHoklch(56.41% 0.214 334)
XYZxyz(28.3748, 15.3826, 38.5129)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30A8 #30BA42
analogous
#8730BA #BA30A8 #BA3063
triadic
#BA30A8 #A8BA30 #30A8BA
tetradic
#BA30A8 #BA8730 #30BA42 #3063BA
square
#BA30A8 #BA8730 #30BA42 #3063BA
split-complementary
#BA30A8 #63BA30 #30BA87
monochromatic
#591750 #89237C #BA30A8 #D354C2 #DF85D4

Accessibility & contrast

On white

5.15
#BA30A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA30A8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30A8#FFFFFF#000000##FFFFFF
##BA30A81.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C61AB
Deuteranopia (green-blind)
#6074A5
Tritanopia (blue-blind)
#C33D69
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba30a8;
/* rgb */ color: rgb(186, 48, 168);
/* oklch */ color: oklch(56.4% 0.214 334.0);
Tailwind
colors: {
  custom: {
    50: '#d377c2',
    500: '#ba30a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba30a8;
$custom-light: #d377c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30a8",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 168
  },
  "hsl": {
    "h": 307.826,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56413,
    "c": 0.21398,
    "h": 334
  },
  "luminance": 0.1538
}

Semantic roles & 50–950 ramp

primary
#BA30A8
secondary
#7DC987
accent
#E25A46
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA30A8

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

Preview Lab → · Contrast checker → · Palette generator →

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