#BA3E97#BA3E97

#BA3E97 is a mid, vivid pink. Relative luminance 0.161; OKLCH L 56.9% C 0.186 H 340.9°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA3E97
RGBrgb(186, 62, 151)
HSLhsl(317, 50%, 49%)
HSVhsv(317, 67%, 73%)
CMYKcmyk(0%, 66.7%, 18.8%, 27.1%)
CIE-LABlab(47.13, 58.81, -22.63)
CIE-LCHlch(47.13, 63.01, 338.96°)
OKLaboklab(56.87% 0.1753 -0.0608)
OKLCHoklch(56.87% 0.186 340.9)
XYZxyz(27.5590, 16.1213, 30.9325)
Luminance0.1612 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3E97 #3EBA61
analogous
#9F3EBA #BA3E97 #BA3E59
triadic
#BA3E97 #97BA3E #3E97BA
tetradic
#BA3E97 #BA9F3E #3EBA61 #3E59BA
square
#BA3E97 #BA9F3E #3EBA61 #3E59BA
split-complementary
#BA3E97 #59BA3E #3EBA9F
monochromatic
#5E1F4C #8C2F72 #BA3E97 #CD68B0 #DC96C8

Accessibility & contrast

On white

4.97
#BA3E97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#BA3E97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3E97
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3E97#FFFFFF#000000##FFFFFF
##BA3E971.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46639A
Deuteranopia (green-blind)
#6C7794
Tritanopia (blue-blind)
#C54065
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba3e97;
/* rgb */ color: rgb(186, 62, 151);
/* oklch */ color: oklch(56.9% 0.186 340.9);
Tailwind
colors: {
  custom: {
    50: '#d27cb5',
    500: '#ba3e97',
    950: '#000000',
  },
}
SCSS
$custom: #ba3e97;
$custom-light: #d27cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3e97",
  "rgb": {
    "r": 186,
    "g": 62,
    "b": 151
  },
  "hsl": {
    "h": 316.935,
    "s": 50,
    "l": 48.627
  },
  "oklch": {
    "l": 0.56867,
    "c": 0.18556,
    "h": 340.9
  },
  "luminance": 0.16119
}

Semantic roles & 50–950 ramp

primary
#BA3E97
secondary
#8CC89D
accent
#DA764E
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150A11
muted
#837C80

Preview Lab

Preview with #BA3E97

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

Preview Lab → · Contrast checker → · Palette generator →

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