#BA30A2#BA30A2

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

Color values

HEX#BA30A2
RGBrgb(186, 48, 162)
HSLhsl(310, 59%, 46%)
HSVhsv(310, 74%, 73%)
CMYKcmyk(0%, 74.2%, 12.9%, 27.1%)
CIE-LABlab(45.86, 65.38, -31.18)
CIE-LCHlch(45.86, 72.44, 334.51°)
OKLaboklab(56.1% 0.1918 -0.085)
OKLCHoklch(56.1% 0.21 336.1)
XYZxyz(27.8287, 15.1642, 35.6368)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA30A2 #30BA48
analogous
#8D30BA #BA30A2 #BA305D
triadic
#BA30A2 #A2BA30 #30A2BA
tetradic
#BA30A2 #BA8D30 #30BA48 #305DBA
square
#BA30A2 #BA8D30 #30BA48 #305DBA
split-complementary
#BA30A2 #5DBA30 #30BA8D
monochromatic
#59174D #892378 #BA30A2 #D354BD #DF85D0

Accessibility & contrast

On white

5.21
#BA30A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BA30A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA30A2
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA30A2#FFFFFF#000000##FFFFFF
##BA30A21.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325FA5
Deuteranopia (green-blind)
#62749F
Tritanopia (blue-blind)
#C43A66
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba30a2;
/* rgb */ color: rgb(186, 48, 162);
/* oklch */ color: oklch(56.1% 0.210 336.1);
Tailwind
colors: {
  custom: {
    50: '#d376be',
    500: '#ba30a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba30a2;
$custom-light: #d376be;
$custom-dark: #000000;
JSON
{
  "hex": "#ba30a2",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 162
  },
  "hsl": {
    "h": 310.435,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56104,
    "c": 0.20979,
    "h": 336.1
  },
  "luminance": 0.15162
}

Semantic roles & 50–950 ramp

primary
#BA30A2
secondary
#7DC98A
accent
#E26146
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA30A2

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

Preview Lab → · Contrast checker → · Palette generator →

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