#BA45B3#BA45B3

#BA45B3 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 59.0% C 0.197 H 330.2°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA45B3
RGBrgb(186, 69, 179)
HSLhsl(304, 46%, 50%)
HSVhsv(304, 63%, 73%)
CMYKcmyk(0%, 62.9%, 3.8%, 27.1%)
CIE-LABlab(49.44, 60.31, -35.59)
CIE-LCHlch(49.44, 70.03, 329.45°)
OKLaboklab(58.97% 0.1708 -0.0979)
OKLCHoklch(58.97% 0.197 330.2)
XYZxyz(30.5143, 17.9522, 44.4970)
Luminance0.1795 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45B3 #45BA4C
analogous
#8745BA #BA45B3 #BA4578
triadic
#BA45B3 #B3BA45 #45B3BA
tetradic
#BA45B3 #BA8745 #45BA4C #4578BA
square
#BA45B3 #BA8745 #45BA4C #4578BA
split-complementary
#BA45B3 #78BA45 #45BA87
monochromatic
#61245D #8D3488 #BA45B3 #CB72C5 #DB9ED7

Accessibility & contrast

On white

4.58
#BA45B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#BA45B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45B3
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45B3#FFFFFF#000000##000000
##BA45B31.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C6BB6
Deuteranopia (green-blind)
#657BB0
Tritanopia (blue-blind)
#C15276
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba45b3;
/* rgb */ color: rgb(186, 69, 179);
/* oklch */ color: oklch(59.0% 0.197 330.2);
Tailwind
colors: {
  custom: {
    50: '#d281ca',
    500: '#ba45b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba45b3;
$custom-light: #d281ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45b3",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 179
  },
  "hsl": {
    "h": 303.59,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.58965,
    "c": 0.19682,
    "h": 330.2
  },
  "luminance": 0.1795
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA45B3

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

Preview Lab → · Contrast checker → · Palette generator →

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