#BA309D#BA309D

#BA309D is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 55.9% C 0.206 H 337.9°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#BA309D
RGBrgb(186, 48, 157)
HSLhsl(313, 59%, 46%)
HSVhsv(313, 74%, 73%)
CMYKcmyk(0%, 74.2%, 15.6%, 27.1%)
CIE-LABlab(45.62, 64.67, -28.56)
CIE-LCHlch(45.62, 70.69, 336.17°)
OKLaboklab(55.86% 0.1913 -0.0775)
OKLCHoklch(55.86% 0.206 337.9)
XYZxyz(27.3930, 14.9899, 33.3424)
Luminance0.1499 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA309D #30BA4D
analogous
#9230BA #BA309D #BA3058
triadic
#BA309D #9DBA30 #309DBA
tetradic
#BA309D #BA9230 #30BA4D #3058BA
square
#BA309D #BA9230 #30BA4D #3058BA
split-complementary
#BA309D #58BA30 #30BA92
monochromatic
#59174B #892374 #BA309D #D354B8 #DF85CC

Accessibility & contrast

On white

5.25
#BA309D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#BA309D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA309D
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA309D#FFFFFF#000000##FFFFFF
##BA309D1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#365EA0
Deuteranopia (green-blind)
#65749A
Tritanopia (blue-blind)
#C43763
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba309d;
/* rgb */ color: rgb(186, 48, 157);
/* oklch */ color: oklch(55.9% 0.206 337.9);
Tailwind
colors: {
  custom: {
    50: '#d376ba',
    500: '#ba309d',
    950: '#000000',
  },
}
SCSS
$custom: #ba309d;
$custom-light: #d376ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba309d",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 157
  },
  "hsl": {
    "h": 312.609,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.55855,
    "c": 0.2064,
    "h": 337.9
  },
  "luminance": 0.14987
}

Semantic roles & 50–950 ramp

primary
#BA309D
secondary
#7DC98D
accent
#E26746
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA309D

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

Preview Lab → · Contrast checker → · Palette generator →

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