#BA338A#BA338A

#BA338A is a mid, vivid pink. Relative luminance 0.146; OKLCH L 55.2% C 0.191 H 345.6°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#BA338A
RGBrgb(186, 51, 138)
HSLhsl(321, 57%, 46%)
HSVhsv(321, 73%, 73%)
CMYKcmyk(0%, 72.6%, 25.8%, 27.1%)
CIE-LABlab(45.14, 61.12, -17.85)
CIE-LCHlch(45.14, 63.67, 343.72°)
OKLaboklab(55.24% 0.1852 -0.0474)
OKLCHoklch(55.24% 0.191 345.6)
XYZxyz(26.0221, 14.6445, 25.4961)
Luminance0.1464 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA338A #33BA63
analogous
#A733BA #BA338A #BA3347
triadic
#BA338A #8ABA33 #338ABA
tetradic
#BA338A #BAA733 #33BA63 #3347BA
square
#BA338A #BAA733 #33BA63 #3347BA
split-complementary
#BA338A #47BA33 #33BAA7
monochromatic
#5A1943 #8A2666 #BA338A #D159A7 #DF89C0

Accessibility & contrast

On white

5.35
#BA338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA338A
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA338A#FFFFFF#000000##FFFFFF
##BA338A1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#445C8C
Deuteranopia (green-blind)
#6C7387
Tritanopia (blue-blind)
#C7305A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba338a;
/* rgb */ color: rgb(186, 51, 138);
/* oklch */ color: oklch(55.2% 0.191 345.6);
Tailwind
colors: {
  custom: {
    50: '#d377ac',
    500: '#ba338a',
    950: '#000000',
  },
}
SCSS
$custom: #ba338a;
$custom-light: #d377ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ba338a",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 321.333,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55239,
    "c": 0.19114,
    "h": 345.6
  },
  "luminance": 0.14642
}

Semantic roles & 50–950 ramp

primary
#BA338A
secondary
#80C99A
accent
#E07E48
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150910
muted
#837B7F

Preview Lab

Preview with #BA338A

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

Preview Lab → · Contrast checker → · Palette generator →

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