#BA3FD6#BA3FD6

#BA3FD6 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.4% C 0.234 H 319.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#BA3FD6
RGBrgb(186, 63, 214)
HSLhsl(289, 65%, 54%)
HSVhsv(289, 71%, 84%)
CMYKcmyk(13.1%, 70.6%, 0%, 16.1%)
CIE-LABlab(50.51, 68.81, -54.11)
CIE-LCHlch(50.51, 87.54, 321.82°)
OKLaboklab(60.36% 0.1776 -0.1516)
OKLCHoklch(60.36% 0.234 319.5)
XYZxyz(34.1633, 18.8508, 65.4443)
Luminance0.1885 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FD6 #5BD63F
analogous
#6F3FD6 #BA3FD6 #D63FA7
triadic
#BA3FD6 #D6BA3F #3FD6BA
tetradic
#BA3FD6 #D66F3F #5BD63F #3FA7D6
square
#BA3FD6 #D66F3F #5BD63F #3FA7D6
split-complementary
#BA3FD6 #A7D63F #3FD66F
monochromatic
#6D1B7F #9826B2 #BA3FD6 #CC71E1 #DEA4EC

Accessibility & contrast

On white

4.40
#BA3FD6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#BA3FD6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3FD6
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FD6#FFFFFF#000000##000000
##BA3FD61.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070DA
Deuteranopia (green-blind)
#4B7CD2
Tritanopia (blue-blind)
#BA5C87
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba3fd6;
/* rgb */ color: rgb(186, 63, 214);
/* oklch */ color: oklch(60.4% 0.234 319.5);
Tailwind
colors: {
  custom: {
    50: '#d37fe3',
    500: '#ba3fd6',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fd6;
$custom-light: #d37fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fd6",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 214
  },
  "hsl": {
    "h": 288.874,
    "s": 64.807,
    "l": 54.314
  },
  "oklch": {
    "l": 0.60356,
    "c": 0.23356,
    "h": 319.5
  },
  "luminance": 0.18849
}

Semantic roles & 50–950 ramp

primary
#BA3FD6
secondary
#A4D898
accent
#E8405F
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B15
muted
#837C84

Preview Lab

Preview with #BA3FD6

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

Preview Lab → · Contrast checker → · Palette generator →

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