#BA338C#BA338C

#BA338C is a mid, vivid pink. Relative luminance 0.147; OKLCH L 55.3% C 0.192 H 344.8°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#BA338C
RGBrgb(186, 51, 140)
HSLhsl(320, 57%, 46%)
HSVhsv(320, 73%, 73%)
CMYKcmyk(0%, 72.6%, 24.7%, 27.1%)
CIE-LABlab(45.22, 61.37, -18.94)
CIE-LCHlch(45.22, 64.23, 342.85°)
OKLaboklab(55.33% 0.1856 -0.0504)
OKLCHoklch(55.33% 0.192 344.8)
XYZxyz(26.1682, 14.7030, 26.2657)
Luminance0.1470 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA338C #33BA61
analogous
#A533BA #BA338C #BA3349
triadic
#BA338C #8CBA33 #338CBA
tetradic
#BA338C #BAA533 #33BA61 #3349BA
square
#BA338C #BAA533 #33BA61 #3349BA
split-complementary
#BA338C #49BA33 #33BAA5
monochromatic
#5A1944 #8A2668 #BA338C #D159A8 #DF89C1

Accessibility & contrast

On white

5.33
#BA338C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#BA338C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA338C
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA338C#FFFFFF#000000##FFFFFF
##BA338C1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#435D8E
Deuteranopia (green-blind)
#6C7389
Tritanopia (blue-blind)
#C6315B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba338c;
/* rgb */ color: rgb(186, 51, 140);
/* oklch */ color: oklch(55.3% 0.192 344.8);
Tailwind
colors: {
  custom: {
    50: '#d377ad',
    500: '#ba338c',
    950: '#000000',
  },
}
SCSS
$custom: #ba338c;
$custom-light: #d377ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba338c",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 140
  },
  "hsl": {
    "h": 320.444,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55325,
    "c": 0.1923,
    "h": 344.8
  },
  "luminance": 0.147
}

Semantic roles & 50–950 ramp

primary
#BA338C
secondary
#80C999
accent
#E07C48
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA338C

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

Preview Lab → · Contrast checker → · Palette generator →

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