#BA42A4#BA42A4

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

Color values

HEX#BA42A4
RGBrgb(186, 66, 164)
HSLhsl(311, 48%, 49%)
HSVhsv(311, 65%, 73%)
CMYKcmyk(0%, 64.5%, 11.8%, 27.1%)
CIE-LABlab(48.28, 59.13, -28.58)
CIE-LCHlch(48.28, 65.68, 334.21°)
OKLaboklab(57.89% 0.1726 -0.0777)
OKLCHoklch(57.89% 0.189 335.8)
XYZxyz(28.8991, 17.0183, 36.8776)
Luminance0.1702 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42A4 #42BA58
analogous
#9442BA #BA42A4 #BA4268
triadic
#BA42A4 #A4BA42 #42A4BA
tetradic
#BA42A4 #BA9442 #42BA58 #4268BA
square
#BA42A4 #BA9442 #42BA58 #4268BA
split-complementary
#BA42A4 #68BA42 #42BA94
monochromatic
#602254 #8D327C #BA42A4 #CB6EBA #DB9BD0

Accessibility & contrast

On white

4.77
#BA42A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA42A4
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42A4#FFFFFF#000000##FFFFFF
##BA42A41.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4367A7
Deuteranopia (green-blind)
#6979A1
Tritanopia (blue-blind)
#C3496D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba42a4;
/* rgb */ color: rgb(186, 66, 164);
/* oklch */ color: oklch(57.9% 0.189 335.8);
Tailwind
colors: {
  custom: {
    50: '#d27fbf',
    500: '#ba42a4',
    950: '#000000',
  },
}
SCSS
$custom: #ba42a4;
$custom-light: #d27fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42a4",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 311,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57893,
    "c": 0.18931,
    "h": 335.8
  },
  "luminance": 0.17016
}

Semantic roles & 50–950 ramp

primary
#BA42A4
secondary
#90C89A
accent
#D76951
background
#FDF8FB
surface
#FAEFF7
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA42A4

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

Preview Lab → · Contrast checker → · Palette generator →

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