#BA45D6#BA45D6

#BA45D6 is a mid, highly saturated purple. Relative luminance 0.196; OKLCH L 60.9% C 0.226 H 319.2°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#BA45D6
RGBrgb(186, 69, 214)
HSLhsl(288, 64%, 55%)
HSVhsv(288, 68%, 84%)
CMYKcmyk(13.1%, 67.8%, 0%, 16.1%)
CIE-LABlab(51.33, 66.51, -52.80)
CIE-LCHlch(51.33, 84.93, 321.55°)
OKLaboklab(60.94% 0.1716 -0.1479)
OKLCHoklch(60.94% 0.226 319.2)
XYZxyz(34.5138, 19.5520, 65.5612)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45D6 #61D645
analogous
#7145D6 #BA45D6 #D645A9
triadic
#BA45D6 #D6BA45 #45D6BA
tetradic
#BA45D6 #D67145 #61D645 #45A9D6
square
#BA45D6 #D67145 #61D645 #45A9D6
split-complementary
#BA45D6 #A9D645 #45D671
monochromatic
#701D84 #9A28B6 #BA45D6 #CD77E1 #DFA9EC

Accessibility & contrast

On white

4.28
#BA45D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#BA45D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45D6
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45D6#FFFFFF#000000##000000
##BA45D61.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DA
Deuteranopia (green-blind)
#4F7ED3
Tritanopia (blue-blind)
#BA6088
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba45d6;
/* rgb */ color: rgb(186, 69, 214);
/* oklch */ color: oklch(60.9% 0.226 319.2);
Tailwind
colors: {
  custom: {
    50: '#d282e3',
    500: '#ba45d6',
    950: '#000000',
  },
}
SCSS
$custom: #ba45d6;
$custom-light: #d282e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45d6",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 288.414,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.60939,
    "c": 0.22649,
    "h": 319.2
  },
  "luminance": 0.1955
}

Semantic roles & 50–950 ramp

primary
#BA45D6
secondary
#A9DA9D
accent
#E74161
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B15
muted
#837C84

Preview Lab

Preview with #BA45D6

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

Preview Lab → · Contrast checker → · Palette generator →

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