#BA3FD9#BA3FD9

#BA3FD9 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.5% C 0.236 H 318.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#BA3FD9
RGBrgb(186, 63, 217)
HSLhsl(288, 67%, 55%)
HSVhsv(288, 71%, 85%)
CMYKcmyk(14.3%, 71%, 0%, 14.9%)
CIE-LABlab(50.69, 69.37, -55.53)
CIE-LCHlch(50.69, 88.85, 321.32°)
OKLaboklab(60.54% 0.1774 -0.1558)
OKLCHoklch(60.54% 0.236 318.7)
XYZxyz(34.5499, 19.0055, 67.4807)
Luminance0.1900 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FD9 #5ED93F
analogous
#6D3FD9 #BA3FD9 #D93FAB
triadic
#BA3FD9 #D9BA3F #3FD9BA
tetradic
#BA3FD9 #D96D3F #5ED93F #3FABD9
square
#BA3FD9 #D96D3F #5ED93F #3FABD9
split-complementary
#BA3FD9 #ABD93F #3FD96D
monochromatic
#6E1A84 #9924B7 #BA3FD9 #CC72E3 #DFA5ED

Accessibility & contrast

On white

4.37
#BA3FD9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#BA3FD9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3FD9
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FD9#FFFFFF#000000##000000
##BA3FD91.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0071DD
Deuteranopia (green-blind)
#487DD5
Tritanopia (blue-blind)
#BA5D88
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba3fd9;
/* rgb */ color: rgb(186, 63, 217);
/* oklch */ color: oklch(60.5% 0.236 318.7);
Tailwind
colors: {
  custom: {
    50: '#d37fe5',
    500: '#ba3fd9',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fd9;
$custom-light: #d37fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fd9",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 217
  },
  "hsl": {
    "h": 287.922,
    "s": 66.957,
    "l": 54.902
  },
  "oklch": {
    "l": 0.60543,
    "c": 0.23612,
    "h": 318.7
  },
  "luminance": 0.19004
}

Semantic roles & 50–950 ramp

primary
#BA3FD9
secondary
#A7DA9A
accent
#EA3E61
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA3FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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