#BA30A0#BA30A0

#BA30A0 is a mid, highly saturated pink. Relative luminance 0.151; OKLCH L 56.0% C 0.208 H 336.8°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BA30A0
RGBrgb(186, 48, 160)
HSLhsl(311, 59%, 46%)
HSVhsv(311, 74%, 73%)
CMYKcmyk(0%, 74.2%, 14%, 27.1%)
CIE-LABlab(45.76, 65.09, -30.14)
CIE-LCHlch(45.76, 71.73, 335.16°)
OKLaboklab(56% 0.1916 -0.082)
OKLCHoklch(56% 0.208 336.8)
XYZxyz(27.6523, 15.0936, 34.7079)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30A0 #30BA4A
analogous
#8F30BA #BA30A0 #BA305B
triadic
#BA30A0 #A0BA30 #30A0BA
tetradic
#BA30A0 #BA8F30 #30BA4A #305BBA
square
#BA30A0 #BA8F30 #30BA4A #305BBA
split-complementary
#BA30A0 #5BBA30 #30BA8F
monochromatic
#59174C #892376 #BA30A0 #D354BB #DF85CE

Accessibility & contrast

On white

5.23
#BA30A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA30A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30A0
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30A0#FFFFFF#000000##FFFFFF
##BA30A01.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345FA3
Deuteranopia (green-blind)
#63749D
Tritanopia (blue-blind)
#C43965
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba30a0;
/* rgb */ color: rgb(186, 48, 160);
/* oklch */ color: oklch(56.0% 0.208 336.8);
Tailwind
colors: {
  custom: {
    50: '#d376bc',
    500: '#ba30a0',
    950: '#000000',
  },
}
SCSS
$custom: #ba30a0;
$custom-light: #d376bc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30a0",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 160
  },
  "hsl": {
    "h": 311.304,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56004,
    "c": 0.20843,
    "h": 336.8
  },
  "luminance": 0.15091
}

Semantic roles & 50–950 ramp

primary
#BA30A0
secondary
#7DC98B
accent
#E26346
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA30A0

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

Preview Lab → · Contrast checker → · Palette generator →

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