#BA3FC6#BA3FC6

#BA3FC6 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.220 H 324.1°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BA3FC6
RGBrgb(186, 63, 198)
HSLhsl(295, 54%, 51%)
HSVhsv(295, 68%, 78%)
CMYKcmyk(6.1%, 68.2%, 0%, 22.4%)
CIE-LABlab(49.58, 65.94, -46.40)
CIE-LCHlch(49.58, 80.63, 324.86°)
OKLaboklab(59.39% 0.1782 -0.1291)
OKLCHoklch(59.39% 0.22 324.1)
XYZxyz(32.2194, 18.0733, 55.2066)
Luminance0.1807 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FC6 #4BC63F
analogous
#763FC6 #BA3FC6 #C63F8E
triadic
#BA3FC6 #C6BA3F #3FC6BA
tetradic
#BA3FC6 #C6763F #4BC63F #3F8EC6
square
#BA3FC6 #C6763F #4BC63F #3F8EC6
split-complementary
#BA3FC6 #8EC63F #3FC676
monochromatic
#64206B #902E9A #BA3FC6 #CB6ED4 #DC9DE2

Accessibility & contrast

On white

4.55
#BA3FC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#BA3FC6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3FC6
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FC6#FFFFFF#000000##000000
##BA3FC61.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1C6CCA
Deuteranopia (green-blind)
#577BC3
Tritanopia (blue-blind)
#BD557E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba3fc6;
/* rgb */ color: rgb(186, 63, 198);
/* oklch */ color: oklch(59.4% 0.220 324.1);
Tailwind
colors: {
  custom: {
    50: '#d27ed8',
    500: '#ba3fc6',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fc6;
$custom-light: #d27ed8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fc6",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 198
  },
  "hsl": {
    "h": 294.667,
    "s": 54.217,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59394,
    "c": 0.2201,
    "h": 324.1
  },
  "luminance": 0.18071
}

Semantic roles & 50–950 ramp

primary
#BA3FC6
secondary
#98CE93
accent
#DE4A57
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA3FC6

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

Preview Lab → · Contrast checker → · Palette generator →

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