#BA3FD2#BA3FD2

#BA3FD2 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.1% C 0.230 H 320.6°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#BA3FD2
RGBrgb(186, 63, 210)
HSLhsl(290, 62%, 54%)
HSVhsv(290, 70%, 82%)
CMYKcmyk(11.4%, 70%, 0%, 17.6%)
CIE-LABlab(50.27, 68.08, -52.20)
CIE-LCHlch(50.27, 85.79, 322.52°)
OKLaboklab(60.11% 0.1779 -0.1461)
OKLCHoklch(60.11% 0.23 320.6)
XYZxyz(33.6587, 18.6490, 62.7870)
Luminance0.1865 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FD2 #57D23F
analogous
#703FD2 #BA3FD2 #D23FA0
triadic
#BA3FD2 #D2BA3F #3FD2BA
tetradic
#BA3FD2 #D2703F #57D23F #3FA0D2
square
#BA3FD2 #D2703F #57D23F #3FA0D2
split-complementary
#BA3FD2 #A0D23F #3FD270
monochromatic
#6B1D7A #9628AC #BA3FD2 #CC71DE #DEA2E9

Accessibility & contrast

On white

4.44
#BA3FD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#BA3FD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3FD2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FD2#FFFFFF#000000##000000
##BA3FD21.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#4E7CCF
Tritanopia (blue-blind)
#BB5A84
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba3fd2;
/* rgb */ color: rgb(186, 63, 210);
/* oklch */ color: oklch(60.1% 0.230 320.6);
Tailwind
colors: {
  custom: {
    50: '#d37fe0',
    500: '#ba3fd2',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fd2;
$custom-light: #d37fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fd2",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 210
  },
  "hsl": {
    "h": 290.204,
    "s": 62.025,
    "l": 53.529
  },
  "oklch": {
    "l": 0.60109,
    "c": 0.23016,
    "h": 320.6
  },
  "luminance": 0.18647
}

Semantic roles & 50–950 ramp

primary
#BA3FD2
secondary
#A1D697
accent
#E5435D
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA3FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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