#BA307E#BA307E

#BA307E is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.5% C 0.188 H 350.6°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#BA307E
RGBrgb(186, 48, 126)
HSLhsl(326, 59%, 46%)
HSVhsv(326, 74%, 73%)
CMYKcmyk(0%, 74.2%, 32.3%, 27.1%)
CIE-LABlab(44.32, 60.67, -11.79)
CIE-LCHlch(44.32, 61.80, 349.01°)
OKLaboklab(54.49% 0.1855 -0.0306)
OKLCHoklch(54.49% 0.188 350.6)
XYZxyz(25.0739, 14.0623, 21.1285)
Luminance0.1406 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA307E #30BA6C
analogous
#B130BA #BA307E #BA3039
triadic
#BA307E #7EBA30 #307EBA
tetradic
#BA307E #BAB130 #30BA6C #3039BA
square
#BA307E #BAB130 #30BA6C #3039BA
split-complementary
#BA307E #39BA30 #30BAB1
monochromatic
#59173C #89235D #BA307E #D3549C #DF85B8

Accessibility & contrast

On white

5.51
#BA307E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#BA307E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA307E
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA307E#FFFFFF#000000##FFFFFF
##BA307E1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#475980
Deuteranopia (green-blind)
#6F727B
Tritanopia (blue-blind)
#C82653
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba307e;
/* rgb */ color: rgb(186, 48, 126);
/* oklch */ color: oklch(54.5% 0.188 350.6);
Tailwind
colors: {
  custom: {
    50: '#d375a3',
    500: '#ba307e',
    950: '#000000',
  },
}
SCSS
$custom: #ba307e;
$custom-light: #d375a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba307e",
  "rgb": {
    "r": 186,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 326.087,
    "s": 58.974,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54488,
    "c": 0.18804,
    "h": 350.6
  },
  "luminance": 0.14059
}

Semantic roles & 50–950 ramp

primary
#BA307E
secondary
#7DC99E
accent
#E28A46
background
#FDF7FA
surface
#FBEEF3
border
#D4C9CD
text
#15090F
muted
#837B7F

Preview Lab

Preview with #BA307E

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

Preview Lab → · Contrast checker → · Palette generator →

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