#BA3FBA#BA3FBA

#BA3FBA is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.7% C 0.210 H 327.8°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA3FBA
RGBrgb(186, 63, 186)
HSLhsl(300, 49%, 49%)
HSVhsv(300, 66%, 73%)
CMYKcmyk(0%, 66.1%, 0%, 27.1%)
CIE-LABlab(48.94, 63.87, -40.47)
CIE-LCHlch(48.94, 75.62, 327.64°)
OKLaboklab(58.72% 0.178 -0.1119)
OKLCHoklch(58.72% 0.21 327.8)
XYZxyz(30.8897, 17.5414, 48.2037)
Luminance0.1754 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FBA #3FBA3F
analogous
#7D3FBA #BA3FBA #BA3F7D
triadic
#BA3FBA #BABA3F #3FBABA
tetradic
#BA3FBA #BA7D3F #3FBA3F #3F7DBA
square
#BA3FBA #BA7D3F #3FBA3F #3F7DBA
split-complementary
#BA3FBA #7DBA3F #3FBA7D
monochromatic
#5F205F #8C308C #BA3FBA #CC6ACC #DC97DC

Accessibility & contrast

On white

4.66
#BA3FBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#BA3FBA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FBA
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FBA#FFFFFF#000000##FFFFFF
##BA3FBA1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABE
Deuteranopia (green-blind)
#5E7AB7
Tritanopia (blue-blind)
#C05077
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba3fba;
/* rgb */ color: rgb(186, 63, 186);
/* oklch */ color: oklch(58.7% 0.210 327.8);
Tailwind
colors: {
  custom: {
    50: '#d27ecf',
    500: '#ba3fba',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fba;
$custom-light: #d27ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fba",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58716,
    "c": 0.21029,
    "h": 327.8
  },
  "luminance": 0.17539
}

Semantic roles & 50–950 ramp

primary
#BA3FBA
secondary
#8DC88D
accent
#D94F4F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #BA3FBA

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

Preview Lab → · Contrast checker → · Palette generator →

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