#BA3F9D#BA3F9D

#BA3F9D is a mid, vivid pink. Relative luminance 0.164; OKLCH L 57.2% C 0.188 H 338.4°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BA3F9D
RGBrgb(186, 63, 157)
HSLhsl(314, 49%, 49%)
HSVhsv(314, 66%, 73%)
CMYKcmyk(0%, 66.1%, 15.6%, 27.1%)
CIE-LABlab(47.53, 59.28, -25.59)
CIE-LCHlch(47.53, 64.57, 336.66°)
OKLaboklab(57.25% 0.1752 -0.0692)
OKLCHoklch(57.25% 0.188 338.4)
XYZxyz(28.1136, 16.4309, 33.5826)
Luminance0.1643 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3F9D #3FBA5C
analogous
#9A3FBA #BA3F9D #BA3F60
triadic
#BA3F9D #9DBA3F #3F9DBA
tetradic
#BA3F9D #BA9A3F #3FBA5C #3F60BA
square
#BA3F9D #BA9A3F #3FBA5C #3F60BA
split-complementary
#BA3F9D #60BA3F #3FBA9A
monochromatic
#5F2050 #8C3076 #BA3F9D #CC6AB5 #DC97CC

Accessibility & contrast

On white

4.90
#BA3F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#BA3F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3F9D
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3F9D#FFFFFF#000000##FFFFFF
##BA3F9D1.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4464A0
Deuteranopia (green-blind)
#6B789A
Tritanopia (blue-blind)
#C44468
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba3f9d;
/* rgb */ color: rgb(186, 63, 157);
/* oklch */ color: oklch(57.2% 0.188 338.4);
Tailwind
colors: {
  custom: {
    50: '#d27dba',
    500: '#ba3f9d',
    950: '#000000',
  },
}
SCSS
$custom: #ba3f9d;
$custom-light: #d27dba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3f9d",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 157
  },
  "hsl": {
    "h": 314.146,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57245,
    "c": 0.18832,
    "h": 338.4
  },
  "luminance": 0.16428
}

Semantic roles & 50–950 ramp

primary
#BA3F9D
secondary
#8DC89B
accent
#D96F4F
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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