#BA316E#BA316E

#BA316E is a mid, vivid pink. Relative luminance 0.138; OKLCH L 54.0% C 0.180 H 358.1°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#BA316E
RGBrgb(186, 49, 110)
HSLhsl(333, 58%, 46%)
HSVhsv(333, 74%, 73%)
CMYKcmyk(0%, 73.7%, 40.9%, 27.1%)
CIE-LABlab(43.89, 58.59, -2.57)
CIE-LCHlch(43.89, 58.64, 357.49°)
OKLaboklab(54% 0.1799 -0.006)
OKLCHoklch(54% 0.18 358.1)
XYZxyz(24.1642, 13.7646, 16.1332)
Luminance0.1376 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA316E #31BA7D
analogous
#BA31B2 #BA316E #BA3931
triadic
#BA316E #6EBA31 #316EBA
tetradic
#BA316E #B2BA31 #31BA7D #3931BA
square
#BA316E #B2BA31 #31BA7D #3931BA
split-complementary
#BA316E #31BA39 #31B2BA
monochromatic
#591735 #8A2451 #BA316E #D2568D #DF86AE

Accessibility & contrast

On white

5.60
#BA316E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#BA316E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA316E
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA316E#FFFFFF#000000##FFFFFF
##BA316E1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5770
Deuteranopia (green-blind)
#73716B
Tritanopia (blue-blind)
#C91E4B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #ba316e;
/* rgb */ color: rgb(186, 49, 110);
/* oklch */ color: oklch(54.0% 0.180 358.1);
Tailwind
colors: {
  custom: {
    50: '#d47597',
    500: '#ba316e',
    950: '#000000',
  },
}
SCSS
$custom: #ba316e;
$custom-light: #d47597;
$custom-dark: #000000;
JSON
{
  "hex": "#ba316e",
  "rgb": {
    "r": 186,
    "g": 49,
    "b": 110
  },
  "hsl": {
    "h": 333.285,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.53995,
    "c": 0.17995,
    "h": 358.1
  },
  "luminance": 0.13762
}

Semantic roles & 50–950 ramp

primary
#BA316E
secondary
#7EC9A7
accent
#E29C46
background
#FDF7F9
surface
#FBEEF2
border
#D4C9CC
text
#15090D
muted
#837B7E

Preview Lab

Preview with #BA316E

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

Preview Lab → · Contrast checker → · Palette generator →

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