#BA30A3#BA30A3

#BA30A3 is a mid, highly saturated pink. Relative luminance 0.152; OKLCH L 56.2% C 0.210 H 335.7°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA30A3
RGBrgb(186, 48, 163)
HSLhsl(310, 59%, 46%)
HSVhsv(310, 74%, 73%)
CMYKcmyk(0%, 74.2%, 12.4%, 27.1%)
CIE-LABlab(45.91, 65.53, -31.70)
CIE-LCHlch(45.91, 72.79, 334.19°)
OKLaboklab(56.16% 0.1919 -0.0865)
OKLCHoklch(56.16% 0.21 335.7)
XYZxyz(27.9179, 15.1999, 36.1068)
Luminance0.1520 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30A3 #30BA47
analogous
#8C30BA #BA30A3 #BA305E
triadic
#BA30A3 #A3BA30 #30A3BA
tetradic
#BA30A3 #BA8C30 #30BA47 #305EBA
square
#BA30A3 #BA8C30 #30BA47 #305EBA
split-complementary
#BA30A3 #5EBA30 #30BA8C
monochromatic
#59174E #892378 #BA30A3 #D354BE #DF85D0

Accessibility & contrast

On white

5.20
#BA30A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#BA30A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30A3
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30A3#FFFFFF#000000##FFFFFF
##BA30A31.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3160A6
Deuteranopia (green-blind)
#6274A0
Tritanopia (blue-blind)
#C33B66
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba30a3;
/* rgb */ color: rgb(186, 48, 163);
/* oklch */ color: oklch(56.2% 0.210 335.7);
Tailwind
colors: {
  custom: {
    50: '#d376be',
    500: '#ba30a3',
    950: '#000000',
  },
}
SCSS
$custom: #ba30a3;
$custom-light: #d376be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30a3",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 163
  },
  "hsl": {
    "h": 310,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56155,
    "c": 0.21049,
    "h": 335.7
  },
  "luminance": 0.15197
}

Semantic roles & 50–950 ramp

primary
#BA30A3
secondary
#7DC98A
accent
#E26046
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA30A3

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

Preview Lab → · Contrast checker → · Palette generator →

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