#BA45D1#BA45D1

#BA45D1 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.6% C 0.222 H 320.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#BA45D1
RGBrgb(186, 69, 209)
HSLhsl(290, 60%, 55%)
HSVhsv(290, 67%, 82%)
CMYKcmyk(11%, 67%, 0%, 18%)
CIE-LABlab(51.04, 65.58, -50.41)
CIE-LCHlch(51.04, 82.72, 322.45°)
OKLaboklab(60.64% 0.1717 -0.1409)
OKLCHoklch(60.64% 0.222 320.6)
XYZxyz(33.8851, 19.3005, 62.2498)
Luminance0.1930 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45D1 #5CD145
analogous
#7445D1 #BA45D1 #D145A2
triadic
#BA45D1 #D1BA45 #45D1BA
tetradic
#BA45D1 #D17445 #5CD145 #45A2D1
square
#BA45D1 #D17445 #5CD145 #45A2D1
split-complementary
#BA45D1 #A2D145 #45D174
monochromatic
#6D1F7D #982BAE #BA45D1 #CC76DD #DEA7E9

Accessibility & contrast

On white

4.32
#BA45D1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#BA45D1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45D1
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45D1#FFFFFF#000000##000000
##BA45D11.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1471D5
Deuteranopia (green-blind)
#537ECE
Tritanopia (blue-blind)
#BB5E86
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba45d1;
/* rgb */ color: rgb(186, 69, 209);
/* oklch */ color: oklch(60.6% 0.222 320.6);
Tailwind
colors: {
  custom: {
    50: '#d282e0',
    500: '#ba45d1',
    950: '#000000',
  },
}
SCSS
$custom: #ba45d1;
$custom-light: #d282e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45d1",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 290.143,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.60637,
    "c": 0.22211,
    "h": 320.6
  },
  "luminance": 0.19299
}

Semantic roles & 50–950 ramp

primary
#BA45D1
secondary
#A5D79B
accent
#E3445E
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA45D1

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

Preview Lab → · Contrast checker → · Palette generator →

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