#BA42A3#BA42A3

#BA42A3 is a mid, vivid pink. Relative luminance 0.170; OKLCH L 57.8% C 0.189 H 336.2°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA42A3
RGBrgb(186, 66, 163)
HSLhsl(312, 48%, 49%)
HSVhsv(312, 65%, 73%)
CMYKcmyk(0%, 64.5%, 12.4%, 27.1%)
CIE-LABlab(48.24, 58.98, -28.06)
CIE-LCHlch(48.24, 65.31, 334.56°)
OKLaboklab(57.85% 0.1725 -0.0762)
OKLCHoklch(57.85% 0.189 336.2)
XYZxyz(28.8091, 16.9823, 36.4038)
Luminance0.1698 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42A3 #42BA59
analogous
#9542BA #BA42A3 #BA4267
triadic
#BA42A3 #A3BA42 #42A3BA
tetradic
#BA42A3 #BA9542 #42BA59 #4267BA
square
#BA42A3 #BA9542 #42BA59 #4267BA
split-complementary
#BA42A3 #67BA42 #42BA95
monochromatic
#602254 #8D327B #BA42A3 #CB6EB9 #DB9BCF

Accessibility & contrast

On white

4.78
#BA42A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#BA42A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA42A3
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42A3#FFFFFF#000000##FFFFFF
##BA42A31.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4467A6
Deuteranopia (green-blind)
#6A79A0
Tritanopia (blue-blind)
#C3496C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba42a3;
/* rgb */ color: rgb(186, 66, 163);
/* oklch */ color: oklch(57.8% 0.189 336.2);
Tailwind
colors: {
  custom: {
    50: '#d27fbe',
    500: '#ba42a3',
    950: '#000000',
  },
}
SCSS
$custom: #ba42a3;
$custom-light: #d27fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42a3",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 311.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57845,
    "c": 0.18858,
    "h": 336.2
  },
  "luminance": 0.1698
}

Semantic roles & 50–950 ramp

primary
#BA42A3
secondary
#90C89B
accent
#D76A51
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA42A3

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

Preview Lab → · Contrast checker → · Palette generator →

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