#BA3F8E#BA3F8E

#BA3F8E is a mid, vivid pink. Relative luminance 0.159; OKLCH L 56.6% C 0.178 H 344.8°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#BA3F8E
RGBrgb(186, 63, 142)
HSLhsl(321, 49%, 49%)
HSVhsv(321, 66%, 73%)
CMYKcmyk(0%, 66.1%, 23.7%, 27.1%)
CIE-LABlab(46.91, 57.16, -17.57)
CIE-LCHlch(46.91, 59.80, 342.91°)
OKLaboklab(56.58% 0.1722 -0.0467)
OKLCHoklch(56.58% 0.178 344.8)
XYZxyz(26.9107, 15.9498, 27.2473)
Luminance0.1595 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3F8E #3FBA6B
analogous
#A93FBA #BA3F8E #BA3F51
triadic
#BA3F8E #8EBA3F #3F8EBA
tetradic
#BA3F8E #BAA93F #3FBA6B #3F51BA
square
#BA3F8E #BAA93F #3FBA6B #3F51BA
split-complementary
#BA3F8E #51BA3F #3FBAA9
monochromatic
#5F2048 #8C306B #BA3F8E #CC6AA9 #DC97C3

Accessibility & contrast

On white

5.01
#BA3F8E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#BA3F8E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3F8E
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3F8E#FFFFFF#000000##FFFFFF
##BA3F8E1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6290
Deuteranopia (green-blind)
#70778B
Tritanopia (blue-blind)
#C63E61
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba3f8e;
/* rgb */ color: rgb(186, 63, 142);
/* oklch */ color: oklch(56.6% 0.178 344.8);
Tailwind
colors: {
  custom: {
    50: '#d27daf',
    500: '#ba3f8e',
    950: '#000000',
  },
}
SCSS
$custom: #ba3f8e;
$custom-light: #d27daf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3f8e",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 142
  },
  "hsl": {
    "h": 321.463,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56582,
    "c": 0.17847,
    "h": 344.8
  },
  "luminance": 0.15947
}

Semantic roles & 50–950 ramp

primary
#BA3F8E
secondary
#8DC8A2
accent
#D9804F
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA3F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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