#BA42A0#BA42A0

#BA42A0 is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.7% C 0.186 H 337.4°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#BA42A0
RGBrgb(186, 66, 160)
HSLhsl(313, 48%, 49%)
HSVhsv(313, 65%, 73%)
CMYKcmyk(0%, 64.5%, 14%, 27.1%)
CIE-LABlab(48.10, 58.52, -26.49)
CIE-LCHlch(48.10, 64.24, 335.65°)
OKLaboklab(57.7% 0.172 -0.0718)
OKLCHoklch(57.7% 0.186 337.4)
XYZxyz(28.5435, 16.8760, 35.0050)
Luminance0.1687 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42A0 #42BA5C
analogous
#9842BA #BA42A0 #BA4264
triadic
#BA42A0 #A0BA42 #42A0BA
tetradic
#BA42A0 #BA9842 #42BA5C #4264BA
square
#BA42A0 #BA9842 #42BA5C #4264BA
split-complementary
#BA42A0 #64BA42 #42BA98
monochromatic
#602252 #8D3279 #BA42A0 #CB6EB7 #DB9BCD

Accessibility & contrast

On white

4.80
#BA42A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#BA42A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA42A0
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42A0#FFFFFF#000000##FFFFFF
##BA42A01.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4566A3
Deuteranopia (green-blind)
#6B799D
Tritanopia (blue-blind)
#C4486B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #ba42a0;
/* rgb */ color: rgb(186, 66, 160);
/* oklch */ color: oklch(57.7% 0.186 337.4);
Tailwind
colors: {
  custom: {
    50: '#d27fbc',
    500: '#ba42a0',
    950: '#000000',
  },
}
SCSS
$custom: #ba42a0;
$custom-light: #d27fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42a0",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 160
  },
  "hsl": {
    "h": 313,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.57703,
    "c": 0.1864,
    "h": 337.4
  },
  "luminance": 0.16874
}

Semantic roles & 50–950 ramp

primary
#BA42A0
secondary
#90C89C
accent
#D76E51
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA42A0

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

Preview Lab → · Contrast checker → · Palette generator →

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