#BA4FC2#BA4FC2

#BA4FC2 is a mid, vivid purple. Relative luminance 0.199; OKLCH L 60.9% C 0.195 H 324.8°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#BA4FC2
RGBrgb(186, 79, 194)
HSLhsl(296, 49%, 54%)
HSVhsv(296, 59%, 76%)
CMYKcmyk(4.1%, 59.3%, 0%, 23.9%)
CIE-LABlab(51.76, 58.60, -40.65)
CIE-LCHlch(51.76, 71.32, 325.25°)
OKLaboklab(60.9% 0.1598 -0.1126)
OKLCHoklch(60.9% 0.195 324.8)
XYZxyz(32.7825, 19.9280, 53.1482)
Luminance0.1993 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FC2 #57C24F
analogous
#804FC2 #BA4FC2 #C24F90
triadic
#BA4FC2 #C2BA4F #4FC2BA
tetradic
#BA4FC2 #C2804F #57C24F #4F90C2
square
#BA4FC2 #C2804F #57C24F #4F90C2
split-complementary
#BA4FC2 #90C24F #4FC280
monochromatic
#6B2770 #96379D #BA4FC2 #CC7CD2 #DEAAE2

Accessibility & contrast

On white

4.21
#BA4FC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#BA4FC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FC2
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FC2#FFFFFF#000000##000000
##BA4FC21.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D73C6
Deuteranopia (green-blind)
#6380BF
Tritanopia (blue-blind)
#BE5F81
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba4fc2;
/* rgb */ color: rgb(186, 79, 194);
/* oklch */ color: oklch(60.9% 0.195 324.8);
Tailwind
colors: {
  custom: {
    50: '#d287d5',
    500: '#ba4fc2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fc2;
$custom-light: #d287d5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fc2",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 194
  },
  "hsl": {
    "h": 295.826,
    "s": 48.523,
    "l": 53.529
  },
  "oklch": {
    "l": 0.60895,
    "c": 0.19547,
    "h": 324.8
  },
  "luminance": 0.19926
}

Semantic roles & 50–950 ramp

primary
#BA4FC2
secondary
#A1CF9E
accent
#D85059
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA4FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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