#BA45C5#BA45C5

#BA45C5 is a mid, highly saturated purple. Relative luminance 0.187; OKLCH L 59.9% C 0.212 H 324.2°. Best body text is #000000 at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#BA45C5
RGBrgb(186, 69, 197)
HSLhsl(295, 52%, 52%)
HSVhsv(295, 65%, 77%)
CMYKcmyk(5.6%, 65%, 0%, 22.7%)
CIE-LABlab(50.37, 63.41, -44.58)
CIE-LCHlch(50.37, 77.51, 324.89°)
OKLaboklab(59.94% 0.1718 -0.1239)
OKLCHoklch(59.94% 0.212 324.2)
XYZxyz(32.4550, 18.7285, 54.7180)
Luminance0.1873 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45C5 #50C545
analogous
#7A45C5 #BA45C5 #C54590
triadic
#BA45C5 #C5BA45 #45C5BA
tetradic
#BA45C5 #C57A45 #50C545 #4590C5
square
#BA45C5 #C57A45 #50C545 #4590C5
split-complementary
#BA45C5 #90C545 #45C57A
monochromatic
#67226D #93319C #BA45C5 #CB74D4 #DDA2E2

Accessibility & contrast

On white

4.43
#BA45C5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#BA45C5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45C5
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45C5#FFFFFF#000000##000000
##BA45C51.004.434.754.75
#FFFFFF4.431.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A6FC9
Deuteranopia (green-blind)
#5B7DC2
Tritanopia (blue-blind)
#BE597F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba45c5;
/* rgb */ color: rgb(186, 69, 197);
/* oklch */ color: oklch(59.9% 0.212 324.2);
Tailwind
colors: {
  custom: {
    50: '#d281d7',
    500: '#ba45c5',
    950: '#000000',
  },
}
SCSS
$custom: #ba45c5;
$custom-light: #d281d7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45c5",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 197
  },
  "hsl": {
    "h": 294.844,
    "s": 52.459,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5994,
    "c": 0.21177,
    "h": 324.2
  },
  "luminance": 0.18727
}

Semantic roles & 50–950 ramp

primary
#BA45C5
secondary
#9CCF97
accent
#DC4C58
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #BA45C5

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

Preview Lab → · Contrast checker → · Palette generator →

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