#BA3FD4#BA3FD4

#BA3FD4 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 60.2% C 0.232 H 320.1°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA3FD4
RGBrgb(186, 63, 212)
HSLhsl(290, 63%, 54%)
HSVhsv(290, 70%, 83%)
CMYKcmyk(12.3%, 70.3%, 0%, 16.9%)
CIE-LABlab(50.39, 68.45, -53.16)
CIE-LCHlch(50.39, 86.66, 322.17°)
OKLaboklab(60.23% 0.1778 -0.1489)
OKLCHoklch(60.23% 0.232 320.1)
XYZxyz(33.9094, 18.7493, 64.1074)
Luminance0.1875 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3FD4 #59D43F
analogous
#703FD4 #BA3FD4 #D43FA4
triadic
#BA3FD4 #D4BA3F #3FD4BA
tetradic
#BA3FD4 #D4703F #59D43F #3FA4D4
square
#BA3FD4 #D4703F #59D43F #3FA4D4
split-complementary
#BA3FD4 #A4D43F #3FD470
monochromatic
#6C1C7D #9727AF #BA3FD4 #CC71DF #DEA3EA

Accessibility & contrast

On white

4.42
#BA3FD4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#BA3FD4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA3FD4
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3FD4#FFFFFF#000000##000000
##BA3FD41.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#4C7CD1
Tritanopia (blue-blind)
#BB5B86
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba3fd4;
/* rgb */ color: rgb(186, 63, 212);
/* oklch */ color: oklch(60.2% 0.232 320.1);
Tailwind
colors: {
  custom: {
    50: '#d37fe2',
    500: '#ba3fd4',
    950: '#000000',
  },
}
SCSS
$custom: #ba3fd4;
$custom-light: #d37fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3fd4",
  "rgb": {
    "r": 186,
    "g": 63,
    "b": 212
  },
  "hsl": {
    "h": 289.53,
    "s": 63.404,
    "l": 53.922
  },
  "oklch": {
    "l": 0.60232,
    "c": 0.23186,
    "h": 320.1
  },
  "luminance": 0.18748
}

Semantic roles & 50–950 ramp

primary
#BA3FD4
secondary
#A3D798
accent
#E6415E
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA3FD4

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

Preview Lab → · Contrast checker → · Palette generator →

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