#BA3170#BA3170

#BA3170 is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.1% C 0.181 H 357.1°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#BA3170
RGBrgb(186, 49, 112)
HSLhsl(332, 58%, 46%)
HSVhsv(332, 74%, 73%)
CMYKcmyk(0%, 73.7%, 39.8%, 27.1%)
CIE-LABlab(43.96, 58.79, -3.71)
CIE-LCHlch(43.96, 58.91, 356.39°)
OKLaboklab(54.06% 0.1805 -0.009)
OKLCHoklch(54.06% 0.181 357.1)
XYZxyz(24.2743, 13.8086, 16.7131)
Luminance0.1381 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3170 #31BA7B
analogous
#BA31B4 #BA3170 #BA3631
triadic
#BA3170 #70BA31 #3170BA
tetradic
#BA3170 #B4BA31 #31BA7B #3631BA
square
#BA3170 #B4BA31 #31BA7B #3631BA
split-complementary
#BA3170 #31BA36 #31B4BA
monochromatic
#591736 #8A2453 #BA3170 #D2568F #DF86AF

Accessibility & contrast

On white

5.58
#BA3170 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#BA3170 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3170
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3170#FFFFFF#000000##FFFFFF
##BA31701.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5872
Deuteranopia (green-blind)
#73716D
Tritanopia (blue-blind)
#C91F4C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba3170;
/* rgb */ color: rgb(186, 49, 112);
/* oklch */ color: oklch(54.1% 0.181 357.1);
Tailwind
colors: {
  custom: {
    50: '#d47599',
    500: '#ba3170',
    950: '#000000',
  },
}
SCSS
$custom: #ba3170;
$custom-light: #d47599;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3170",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 112
  },
  "hsl": {
    "h": 332.409,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54062,
    "c": 0.1807,
    "h": 357.1
  },
  "luminance": 0.13806
}

Semantic roles & 50–950 ramp

primary
#BA3170
secondary
#7EC9A6
accent
#E29A46
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA3170

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

Preview Lab → · Contrast checker → · Palette generator →

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