#BA2FAD#BA2FAD

#BA2FAD is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.219 H 332.3°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#BA2FAD
RGBrgb(186, 47, 173)
HSLhsl(306, 60%, 46%)
HSVhsv(306, 75%, 73%)
CMYKcmyk(0%, 74.7%, 7%, 27.1%)
CIE-LABlab(46.30, 67.33, -37.01)
CIE-LCHlch(46.30, 76.83, 331.20°)
OKLaboklab(56.6% 0.1934 -0.1018)
OKLCHoklch(56.6% 0.219 332.3)
XYZxyz(28.8091, 15.4917, 40.9999)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FAD #2FBA3C
analogous
#822FBA #BA2FAD #BA2F67
triadic
#BA2FAD #ADBA2F #2FADBA
tetradic
#BA2FAD #BA822F #2FBA3C #2F67BA
square
#BA2FAD #BA822F #2FBA3C #2F67BA
split-complementary
#BA2FAD #67BA2F #2FBA82
monochromatic
#581652 #892380 #BA2FAD #D353C7 #E084D7

Accessibility & contrast

On white

5.12
#BA2FAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA2FAD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FAD
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FAD#FFFFFF#000000##FFFFFF
##BA2FAD1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2661B0
Deuteranopia (green-blind)
#5D75AA
Tritanopia (blue-blind)
#C23F6C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2fad;
/* rgb */ color: rgb(186, 47, 173);
/* oklch */ color: oklch(56.6% 0.219 332.3);
Tailwind
colors: {
  custom: {
    50: '#d376c6',
    500: '#ba2fad',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fad;
$custom-light: #d376c6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fad",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 173
  },
  "hsl": {
    "h": 305.612,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56601,
    "c": 0.21858,
    "h": 332.3
  },
  "luminance": 0.15489
}

Semantic roles & 50–950 ramp

primary
#BA2FAD
secondary
#7CC983
accent
#E35445
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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