#BA45BC#BA45BC

#BA45BC is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.4% C 0.204 H 327.1°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#BA45BC
RGBrgb(186, 69, 188)
HSLhsl(299, 47%, 50%)
HSVhsv(299, 63%, 74%)
CMYKcmyk(1.1%, 63.3%, 0%, 26.3%)
CIE-LABlab(49.89, 61.83, -40.12)
CIE-LCHlch(49.89, 73.71, 327.02°)
OKLaboklab(59.44% 0.1714 -0.1109)
OKLCHoklch(59.44% 0.204 327.1)
XYZxyz(31.4544, 18.3282, 49.4482)
Luminance0.1833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45BC #47BC45
analogous
#7F45BC #BA45BC #BC4582
triadic
#BA45BC #BCBA45 #45BCBA
tetradic
#BA45BC #BC7F45 #47BC45 #4582BC
square
#BA45BC #BC7F45 #47BC45 #4582BC
split-complementary
#BA45BC #82BC45 #45BC7F
monochromatic
#622463 #8E3490 #BA45BC #CB72CC #DB9FDC

Accessibility & contrast

On white

4.50
#BA45BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#BA45BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45BC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45BC#FFFFFF#000000##000000
##BA45BC1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#346DC0
Deuteranopia (green-blind)
#607CB9
Tritanopia (blue-blind)
#BF557A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba45bc;
/* rgb */ color: rgb(186, 69, 188);
/* oklch */ color: oklch(59.4% 0.204 327.1);
Tailwind
colors: {
  custom: {
    50: '#d281d0',
    500: '#ba45bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba45bc;
$custom-light: #d281d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45bc",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 298.992,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59441,
    "c": 0.20419,
    "h": 327.1
  },
  "luminance": 0.18326
}

Semantic roles & 50–950 ramp

primary
#BA45BC
secondary
#95C994
accent
#D75153
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA45BC

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

Preview Lab → · Contrast checker → · Palette generator →

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