#BA3FB9#BA3FB9

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

Color values

HEX#BA3FB9
RGBrgb(186, 63, 185)
HSLhsl(300, 49%, 49%)
HSVhsv(300, 66%, 73%)
CMYKcmyk(0%, 66.1%, 0.5%, 27.1%)
CIE-LABlab(48.88, 63.70, -39.97)
CIE-LCHlch(48.88, 75.21, 327.89°)
OKLaboklab(58.66% 0.178 -0.1105)
OKLCHoklch(58.66% 0.209 328.2)
XYZxyz(30.7838, 17.4990, 47.6458)
Luminance0.1750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FB9 #3FBA40
analogous
#7E3FBA #BA3FB9 #BA3F7C
triadic
#BA3FB9 #B9BA3F #3FB9BA
tetradic
#BA3FB9 #BA7E3F #3FBA40 #3F7CBA
square
#BA3FB9 #BA7E3F #3FBA40 #3F7CBA
split-complementary
#BA3FB9 #7CBA3F #3FBA7E
monochromatic
#5F205E #8C308C #BA3FB9 #CC6ACC #DC97DB

Accessibility & contrast

On white

4.67
#BA3FB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#BA3FB9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3FB9
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FB9#FFFFFF#000000##FFFFFF
##BA3FB91.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba3fb9;
/* rgb */ color: rgb(186, 63, 185);
/* oklch */ color: oklch(58.7% 0.209 328.2);
Tailwind
colors: {
  custom: {
    50: '#d27ece',
    500: '#ba3fb9',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fb9;
$custom-light: #d27ece;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fb9",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 185
  },
  "hsl": {
    "h": 300.488,
    "s": 49.398,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58661,
    "c": 0.20949,
    "h": 328.2
  },
  "luminance": 0.17497
}

Semantic roles & 50–950 ramp

primary
#BA3FB9
secondary
#8DC88E
accent
#D9504F
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#150B14
muted
#837C82

Preview Lab

Preview with #BA3FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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