#BA338B#BA338B

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

Color values

HEX#BA338B
RGBrgb(186, 51, 139)
HSLhsl(321, 57%, 46%)
HSVhsv(321, 73%, 73%)
CMYKcmyk(0%, 72.6%, 25.3%, 27.1%)
CIE-LABlab(45.18, 61.25, -18.40)
CIE-LCHlch(45.18, 63.95, 343.28°)
OKLaboklab(55.28% 0.1854 -0.0489)
OKLCHoklch(55.28% 0.192 345.2)
XYZxyz(26.0948, 14.6736, 25.8791)
Luminance0.1467 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA338B #33BA62
analogous
#A633BA #BA338B #BA3348
triadic
#BA338B #8BBA33 #338BBA
tetradic
#BA338B #BAA633 #33BA62 #3348BA
square
#BA338B #BAA633 #33BA62 #3348BA
split-complementary
#BA338B #48BA33 #33BAA6
monochromatic
#5A1943 #8A2667 #BA338B #D159A7 #DF89C1

Accessibility & contrast

On white

5.34
#BA338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#BA338B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA338B
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA338B#FFFFFF#000000##FFFFFF
##BA338B1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba338b;
/* rgb */ color: rgb(186, 51, 139);
/* oklch */ color: oklch(55.3% 0.192 345.2);
Tailwind
colors: {
  custom: {
    50: '#d377ad',
    500: '#ba338b',
    950: '#000000',
  },
}
SCSS
$custom: #ba338b;
$custom-light: #d377ad;
$custom-dark: #000000;
JSON
{
  "hex": "#ba338b",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 320.889,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55282,
    "c": 0.19172,
    "h": 345.2
  },
  "luminance": 0.14671
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA338B

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

Preview Lab → · Contrast checker → · Palette generator →

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