#BA338E#BA338E

#BA338E is a mid, vivid pink. Relative luminance 0.148; OKLCH L 55.4% C 0.194 H 344.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#BA338E
RGBrgb(186, 51, 142)
HSLhsl(320, 57%, 46%)
HSVhsv(320, 73%, 73%)
CMYKcmyk(0%, 72.6%, 23.7%, 27.1%)
CIE-LABlab(45.31, 61.63, -20.03)
CIE-LCHlch(45.31, 64.81, 342.00°)
OKLaboklab(55.41% 0.186 -0.0534)
OKLCHoklch(55.41% 0.194 344)
XYZxyz(26.3170, 14.7625, 27.0494)
Luminance0.1476 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA338E #33BA5F
analogous
#A333BA #BA338E #BA334A
triadic
#BA338E #8EBA33 #338EBA
tetradic
#BA338E #BAA333 #33BA5F #334ABA
square
#BA338E #BAA333 #33BA5F #334ABA
split-complementary
#BA338E #4ABA33 #33BAA3
monochromatic
#5A1945 #8A2669 #BA338E #D159AA #DF89C3

Accessibility & contrast

On white

5.31
#BA338E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA338E
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA338E#FFFFFF#000000##FFFFFF
##BA338E1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba338e;
/* rgb */ color: rgb(186, 51, 142);
/* oklch */ color: oklch(55.4% 0.194 344.0);
Tailwind
colors: {
  custom: {
    50: '#d377af',
    500: '#ba338e',
    950: '#000000',
  },
}
SCSS
$custom: #ba338e;
$custom-light: #d377af;
$custom-dark: #000000;
JSON
{
  "hex": "#ba338e",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 319.556,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55412,
    "c": 0.1935,
    "h": 344
  },
  "luminance": 0.1476
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA338E

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

Preview Lab → · Contrast checker → · Palette generator →

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