#BA3FB8#BA3FB8

#BA3FB8 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.6% C 0.209 H 328.5°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BA3FB8
RGBrgb(186, 63, 184)
HSLhsl(301, 49%, 49%)
HSVhsv(301, 66%, 73%)
CMYKcmyk(0%, 66.1%, 1.1%, 27.1%)
CIE-LABlab(48.83, 63.54, -39.47)
CIE-LCHlch(48.83, 74.80, 328.15°)
OKLaboklab(58.61% 0.178 -0.109)
OKLCHoklch(58.61% 0.209 328.5)
XYZxyz(30.6786, 17.4570, 47.0918)
Luminance0.1746 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FB8 #3FBA41
analogous
#7F3FBA #BA3FB8 #BA3F7B
triadic
#BA3FB8 #B8BA3F #3FB8BA
tetradic
#BA3FB8 #BA7F3F #3FBA41 #3F7BBA
square
#BA3FB8 #BA7F3F #3FBA41 #3F7BBA
split-complementary
#BA3FB8 #7BBA3F #3FBA7F
monochromatic
#5F205E #8C308B #BA3FB8 #CC6ACB #DC97DB

Accessibility & contrast

On white

4.68
#BA3FB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#BA3FB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FB8
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FB8#FFFFFF#000000##FFFFFF
##BA3FB81.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6ABC
Deuteranopia (green-blind)
#5F7AB5
Tritanopia (blue-blind)
#C04F76
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba3fb8;
/* rgb */ color: rgb(186, 63, 184);
/* oklch */ color: oklch(58.6% 0.209 328.5);
Tailwind
colors: {
  custom: {
    50: '#d27ece',
    500: '#ba3fb8',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fb8;
$custom-light: #d27ece;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fb8",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 184
  },
  "hsl": {
    "h": 300.976,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58607,
    "c": 0.20869,
    "h": 328.5
  },
  "luminance": 0.17455
}

Semantic roles & 50–950 ramp

primary
#BA3FB8
secondary
#8DC88E
accent
#D9514F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA3FB8

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

Preview Lab → · Contrast checker → · Palette generator →

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