#BA2FBD#BA2FBD

#BA2FBD is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.5% C 0.230 H 327.1°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA2FBD
RGBrgb(186, 47, 189)
HSLhsl(299, 60%, 46%)
HSVhsv(299, 75%, 74%)
CMYKcmyk(1.6%, 75.1%, 0%, 25.9%)
CIE-LABlab(47.17, 69.85, -45.03)
CIE-LCHlch(47.17, 83.11, 327.19°)
OKLaboklab(57.5% 0.1935 -0.125)
OKLCHoklch(57.5% 0.23 327.1)
XYZxyz(30.4510, 16.1484, 49.6474)
Luminance0.1615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FBD #32BD2F
analogous
#732FBD #BA2FBD #BD2F79
triadic
#BA2FBD #BDBA2F #2FBDBA
tetradic
#BA2FBD #BD732F #32BD2F #2F79BD
square
#BA2FBD #BD732F #32BD2F #2F79BD
split-complementary
#BA2FBD #79BD2F #2FBD73
monochromatic
#5A175B #8A238C #BA2FBD #D255D5 #DF86E1

Accessibility & contrast

On white

4.97
#BA2FBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#BA2FBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FBD
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FBD#FFFFFF#000000##FFFFFF
##BA2FBD1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0165C1
Deuteranopia (green-blind)
#5476BA
Tritanopia (blue-blind)
#BF4775
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba2fbd;
/* rgb */ color: rgb(186, 47, 189);
/* oklch */ color: oklch(57.5% 0.230 327.1);
Tailwind
colors: {
  custom: {
    50: '#d377d1',
    500: '#ba2fbd',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fbd;
$custom-light: #d377d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fbd",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 189
  },
  "hsl": {
    "h": 298.732,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57502,
    "c": 0.23039,
    "h": 327.1
  },
  "luminance": 0.16146
}

Semantic roles & 50–950 ramp

primary
#BA2FBD
secondary
#7FCA7E
accent
#E34448
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2FBD

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

Preview Lab → · Contrast checker → · Palette generator →

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