#BA2FC6#BA2FC6

#BA2FC6 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 58.0% C 0.237 H 324.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BA2FC6
RGBrgb(186, 47, 198)
HSLhsl(295, 62%, 48%)
HSVhsv(295, 76%, 78%)
CMYKcmyk(6.1%, 76.3%, 0%, 22.4%)
CIE-LABlab(47.69, 71.34, -49.43)
CIE-LCHlch(47.69, 86.79, 325.28°)
OKLaboklab(58.04% 0.1931 -0.1378)
OKLCHoklch(58.04% 0.237 324.5)
XYZxyz(31.4584, 16.5514, 54.9529)
Luminance0.1655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2FC6 #3BC62F
analogous
#6E2FC6 #BA2FC6 #C62F86
triadic
#BA2FC6 #C6BA2F #2FC6BA
tetradic
#BA2FC6 #C66E2F #3BC62F #2F86C6
square
#BA2FC6 #C66E2F #3BC62F #2F86C6
split-complementary
#BA2FC6 #86C62F #2FC66E
monochromatic
#5D1863 #8C2395 #BA2FC6 #CE5AD8 #DD8CE4

Accessibility & contrast

On white

4.87
#BA2FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#BA2FC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2FC6
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2FC6#FFFFFF#000000##FFFFFF
##BA2FC61.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#4E77C2
Tritanopia (blue-blind)
#BE4B7A
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #ba2fc6;
/* rgb */ color: rgb(186, 47, 198);
/* oklch */ color: oklch(58.0% 0.237 324.5);
Tailwind
colors: {
  custom: {
    50: '#d377d8',
    500: '#ba2fc6',
    950: '#000000',
  },
}
SCSS
$custom: #ba2fc6;
$custom-light: #d377d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2fc6",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 198
  },
  "hsl": {
    "h": 295.232,
    "s": 61.633,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5804,
    "c": 0.23725,
    "h": 324.5
  },
  "luminance": 0.16549
}

Semantic roles & 50–950 ramp

primary
#BA2FC6
secondary
#89CE83
accent
#E54350
background
#FDF7FD
surface
#FBEEFA
border
#D4C9D3
text
#150A14
muted
#837C83

Preview Lab

Preview with #BA2FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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