#BA338F#BA338F

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

Color values

HEX#BA338F
RGBrgb(186, 51, 143)
HSLhsl(319, 57%, 46%)
HSVhsv(319, 73%, 73%)
CMYKcmyk(0%, 72.6%, 23.1%, 27.1%)
CIE-LABlab(45.35, 61.76, -20.57)
CIE-LCHlch(45.35, 65.10, 341.58°)
OKLaboklab(55.46% 0.1862 -0.0549)
OKLCHoklch(55.46% 0.194 343.6)
XYZxyz(26.3924, 14.7927, 27.4466)
Luminance0.1479 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA338F #33BA5E
analogous
#A233BA #BA338F #BA334C
triadic
#BA338F #8FBA33 #338FBA
tetradic
#BA338F #BAA233 #33BA5E #334CBA
square
#BA338F #BAA233 #33BA5E #334CBA
split-complementary
#BA338F #4CBA33 #33BAA2
monochromatic
#5A1945 #8A266A #BA338F #D159AB #DF89C3

Accessibility & contrast

On white

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

On black

3.96
#BA338F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##BA338F#FFFFFF#000000##FFFFFF
##BA338F1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415D92
Deuteranopia (green-blind)
#6B738C
Tritanopia (blue-blind)
#C6335D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba338f;
/* rgb */ color: rgb(186, 51, 143);
/* oklch */ color: oklch(55.5% 0.194 343.6);
Tailwind
colors: {
  custom: {
    50: '#d377b0',
    500: '#ba338f',
    950: '#000000',
  },
}
SCSS
$custom: #ba338f;
$custom-light: #d377b0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba338f",
  "rgb": {
    "r": 186,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 319.111,
    "s": 56.962,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55456,
    "c": 0.1941,
    "h": 343.6
  },
  "luminance": 0.1479
}

Semantic roles & 50–950 ramp

primary
#BA338F
secondary
#80C997
accent
#E07848
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#150A10
muted
#837C7F

Preview Lab

Preview with #BA338F

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

Preview Lab → · Contrast checker → · Palette generator →

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