#BA3E8D#BA3E8D

#BA3E8D is a mid, vivid pink. Relative luminance 0.158; OKLCH L 56.4% C 0.179 H 345.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#BA3E8D
RGBrgb(186, 62, 141)
HSLhsl(322, 50%, 49%)
HSVhsv(322, 67%, 73%)
CMYKcmyk(0%, 66.7%, 24.2%, 27.1%)
CIE-LABlab(46.72, 57.43, -17.25)
CIE-LCHlch(46.72, 59.96, 343.28°)
OKLaboklab(56.43% 0.1732 -0.0458)
OKLCHoklch(56.43% 0.179 345.2)
XYZxyz(26.7810, 15.8101, 26.8354)
Luminance0.1581 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3E8D #3EBA6B
analogous
#A93EBA #BA3E8D #BA3E4F
triadic
#BA3E8D #8DBA3E #3E8DBA
tetradic
#BA3E8D #BAA93E #3EBA6B #3E4FBA
square
#BA3E8D #BAA93E #3EBA6B #3E4FBA
split-complementary
#BA3E8D #4FBA3E #3EBAA9
monochromatic
#5E1F47 #8C2F6A #BA3E8D #CD68A8 #DC96C3

Accessibility & contrast

On white

5.05
#BA3E8D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#BA3E8D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3E8D
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3E8D#FFFFFF#000000##FFFFFF
##BA3E8D1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B618F
Deuteranopia (green-blind)
#70768A
Tritanopia (blue-blind)
#C63C60
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba3e8d;
/* rgb */ color: rgb(186, 62, 141);
/* oklch */ color: oklch(56.4% 0.179 345.2);
Tailwind
colors: {
  custom: {
    50: '#d27cae',
    500: '#ba3e8d',
    950: '#000000',
  },
}
SCSS
$custom: #ba3e8d;
$custom-light: #d27cae;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3e8d",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 141
  },
  "hsl": {
    "h": 321.774,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56434,
    "c": 0.1792,
    "h": 345.2
  },
  "luminance": 0.15807
}

Semantic roles & 50–950 ramp

primary
#BA3E8D
secondary
#8CC8A2
accent
#DA814E
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA3E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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