#BA45B4#BA45B4

#BA45B4 is a mid, vivid purple. Relative luminance 0.180; OKLCH L 59.0% C 0.198 H 329.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#BA45B4
RGBrgb(186, 69, 180)
HSLhsl(303, 46%, 50%)
HSVhsv(303, 63%, 73%)
CMYKcmyk(0%, 62.9%, 3.2%, 27.1%)
CIE-LABlab(49.49, 60.47, -36.10)
CIE-LCHlch(49.49, 70.43, 329.16°)
OKLaboklab(59.02% 0.1709 -0.0993)
OKLCHoklch(59.02% 0.198 329.8)
XYZxyz(30.6158, 17.9928, 45.0316)
Luminance0.1799 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45B4 #45BA4B
analogous
#8645BA #BA45B4 #BA4579
triadic
#BA45B4 #B4BA45 #45B4BA
tetradic
#BA45B4 #BA8645 #45BA4B #4579BA
square
#BA45B4 #BA8645 #45BA4B #4579BA
split-complementary
#BA45B4 #79BA45 #45BA86
monochromatic
#61245E #8D3489 #BA45B4 #CB72C6 #DB9ED8

Accessibility & contrast

On white

4.57
#BA45B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#BA45B4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45B4
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45B4#FFFFFF#000000##000000
##BA45B41.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B6BB7
Deuteranopia (green-blind)
#647BB1
Tritanopia (blue-blind)
#C15276
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba45b4;
/* rgb */ color: rgb(186, 69, 180);
/* oklch */ color: oklch(59.0% 0.198 329.8);
Tailwind
colors: {
  custom: {
    50: '#d281cb',
    500: '#ba45b4',
    950: '#000000',
  },
}
SCSS
$custom: #ba45b4;
$custom-light: #d281cb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45b4",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 180
  },
  "hsl": {
    "h": 303.077,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.59017,
    "c": 0.19763,
    "h": 329.8
  },
  "luminance": 0.17991
}

Semantic roles & 50–950 ramp

primary
#BA45B4
secondary
#93C896
accent
#D65952
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA45B4

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

Preview Lab → · Contrast checker → · Palette generator →

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