#BA45C1#BA45C1

#BA45C1 is a mid, highly saturated purple. Relative luminance 0.185; OKLCH L 59.7% C 0.208 H 325.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#BA45C1
RGBrgb(186, 69, 193)
HSLhsl(297, 50%, 51%)
HSVhsv(297, 64%, 76%)
CMYKcmyk(3.6%, 64.2%, 0%, 24.3%)
CIE-LABlab(50.15, 62.70, -42.61)
CIE-LCHlch(50.15, 75.81, 325.80°)
OKLaboklab(59.72% 0.1717 -0.1181)
OKLCHoklch(59.72% 0.208 325.5)
XYZxyz(32.0028, 18.5476, 52.3361)
Luminance0.1855 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45C1 #4CC145
analogous
#7C45C1 #BA45C1 #C1458A
triadic
#BA45C1 #C1BA45 #45C1BA
tetradic
#BA45C1 #C17C45 #4CC145 #458AC1
square
#BA45C1 #C17C45 #4CC145 #458AC1
split-complementary
#BA45C1 #8AC145 #45C17C
monochromatic
#652369 #913297 #BA45C1 #CB73D0 #DCA1E0

Accessibility & contrast

On white

4.46
#BA45C1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#BA45C1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45C1
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45C1#FFFFFF#000000##000000
##BA45C11.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F6EC5
Deuteranopia (green-blind)
#5D7CBE
Tritanopia (blue-blind)
#BE577D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba45c1;
/* rgb */ color: rgb(186, 69, 193);
/* oklch */ color: oklch(59.7% 0.208 325.5);
Tailwind
colors: {
  custom: {
    50: '#d281d4',
    500: '#ba45c1',
    950: '#000000',
  },
}
SCSS
$custom: #ba45c1;
$custom-light: #d281d4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45c1",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 193
  },
  "hsl": {
    "h": 296.613,
    "s": 50,
    "l": 51.373
  },
  "oklch": {
    "l": 0.59716,
    "c": 0.20838,
    "h": 325.5
  },
  "luminance": 0.18546
}

Semantic roles & 50–950 ramp

primary
#BA45C1
secondary
#99CC96
accent
#DA4E56
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #BA45C1

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

Preview Lab → · Contrast checker → · Palette generator →

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