#BA42A2#BA42A2

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

Color values

HEX#BA42A2
RGBrgb(186, 66, 162)
HSLhsl(312, 48%, 49%)
HSVhsv(312, 65%, 73%)
CMYKcmyk(0%, 64.5%, 12.9%, 27.1%)
CIE-LABlab(48.19, 58.83, -27.53)
CIE-LCHlch(48.19, 64.95, 334.92°)
OKLaboklab(57.8% 0.1723 -0.0748)
OKLCHoklch(57.8% 0.188 336.5)
XYZxyz(28.7199, 16.9466, 35.9338)
Luminance0.1694 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42A2 #42BA5A
analogous
#9642BA #BA42A2 #BA4266
triadic
#BA42A2 #A2BA42 #42A2BA
tetradic
#BA42A2 #BA9642 #42BA5A #4266BA
square
#BA42A2 #BA9642 #42BA5A #4266BA
split-complementary
#BA42A2 #66BA42 #42BA96
monochromatic
#602253 #8D327B #BA42A2 #CB6EB9 #DB9BCF

Accessibility & contrast

On white

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

On black

4.39
#BA42A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA42A2#FFFFFF#000000##FFFFFF
##BA42A21.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4467A5
Deuteranopia (green-blind)
#6A799F
Tritanopia (blue-blind)
#C3486C
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba42a2;
/* rgb */ color: rgb(186, 66, 162);
/* oklch */ color: oklch(57.8% 0.188 336.5);
Tailwind
colors: {
  custom: {
    50: '#d27fbe',
    500: '#ba42a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba42a2;
$custom-light: #d27fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42a2",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 312,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57797,
    "c": 0.18785,
    "h": 336.5
  },
  "luminance": 0.16944
}

Semantic roles & 50–950 ramp

primary
#BA42A2
secondary
#90C89B
accent
#D76C51
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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