#BA3FDA#BA3FDA

#BA3FDA is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.6% C 0.237 H 318.4°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#BA3FDA
RGBrgb(186, 63, 218)
HSLhsl(288, 68%, 55%)
HSVhsv(288, 71%, 85%)
CMYKcmyk(14.7%, 71.1%, 0%, 14.5%)
CIE-LABlab(50.75, 69.55, -56.00)
CIE-LCHlch(50.75, 89.30, 321.16°)
OKLaboklab(60.61% 0.1773 -0.1572)
OKLCHoklch(60.61% 0.237 318.4)
XYZxyz(34.6804, 19.0577, 68.1678)
Luminance0.1906 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FDA #5FDA3F
analogous
#6C3FDA #BA3FDA #DA3FAC
triadic
#BA3FDA #DABA3F #3FDABA
tetradic
#BA3FDA #DA6C3F #5FDA3F #3FACDA
square
#BA3FDA #DA6C3F #5FDA3F #3FACDA
split-complementary
#BA3FDA #ACDA3F #3FDA6C
monochromatic
#6F1A85 #9A24B8 #BA3FDA #CC72E4 #DFA6EE

Accessibility & contrast

On white

4.36
#BA3FDA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#BA3FDA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3FDA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FDA#FFFFFF#000000##000000
##BA3FDA1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DE
Deuteranopia (green-blind)
#477DD6
Tritanopia (blue-blind)
#B95E89
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba3fda;
/* rgb */ color: rgb(186, 63, 218);
/* oklch */ color: oklch(60.6% 0.237 318.4);
Tailwind
colors: {
  custom: {
    50: '#d37fe6',
    500: '#ba3fda',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fda;
$custom-light: #d37fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fda",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 218
  },
  "hsl": {
    "h": 287.613,
    "s": 67.686,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60606,
    "c": 0.23697,
    "h": 318.4
  },
  "luminance": 0.19056
}

Semantic roles & 50–950 ramp

primary
#BA3FDA
secondary
#A7DB9A
accent
#EB3D61
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA3FDA

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

Preview Lab → · Contrast checker → · Palette generator →

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