#BA338D#BA338D

#BA338D is a mid, vivid pink. Relative luminance 0.147; OKLCH L 55.4% C 0.193 H 344.4°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#BA338D
RGBrgb(186, 51, 141)
HSLhsl(320, 57%, 46%)
HSVhsv(320, 73%, 73%)
CMYKcmyk(0%, 72.6%, 24.2%, 27.1%)
CIE-LABlab(45.27, 61.50, -19.48)
CIE-LCHlch(45.27, 64.52, 342.42°)
OKLaboklab(55.37% 0.1858 -0.0519)
OKLCHoklch(55.37% 0.193 344.4)
XYZxyz(26.2423, 14.7326, 26.6558)
Luminance0.1473 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA338D #33BA60
analogous
#A433BA #BA338D #BA334A
triadic
#BA338D #8DBA33 #338DBA
tetradic
#BA338D #BAA433 #33BA60 #334ABA
square
#BA338D #BAA433 #33BA60 #334ABA
split-complementary
#BA338D #4ABA33 #33BAA4
monochromatic
#5A1944 #8A2669 #BA338D #D159A9 #DF89C2

Accessibility & contrast

On white

5.32
#BA338D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#BA338D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA338D
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA338D#FFFFFF#000000##FFFFFF
##BA338D1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#425D8F
Deuteranopia (green-blind)
#6B738A
Tritanopia (blue-blind)
#C6325C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba338d;
/* rgb */ color: rgb(186, 51, 141);
/* oklch */ color: oklch(55.4% 0.193 344.4);
Tailwind
colors: {
  custom: {
    50: '#d377ae',
    500: '#ba338d',
    950: '#000000',
  },
}
SCSS
$custom: #ba338d;
$custom-light: #d377ae;
$custom-dark: #000000;
JSON
{
  "hex": "#ba338d",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 320,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55368,
    "c": 0.1929,
    "h": 344.4
  },
  "luminance": 0.1473
}

Semantic roles & 50–950 ramp

primary
#BA338D
secondary
#80C998
accent
#E07A48
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA338D

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

Preview Lab → · Contrast checker → · Palette generator →

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