#BA45D2#BA45D2

#BA45D2 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 60.7% C 0.223 H 320.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BA45D2
RGBrgb(186, 69, 210)
HSLhsl(290, 61%, 55%)
HSVhsv(290, 67%, 82%)
CMYKcmyk(11.4%, 67.1%, 0%, 17.6%)
CIE-LABlab(51.09, 65.77, -50.89)
CIE-LCHlch(51.09, 83.16, 322.27°)
OKLaboklab(60.7% 0.1717 -0.1423)
OKLCHoklch(60.7% 0.223 320.4)
XYZxyz(34.0093, 19.3502, 62.9038)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45D2 #5DD245
analogous
#7345D2 #BA45D2 #D245A4
triadic
#BA45D2 #D2BA45 #45D2BA
tetradic
#BA45D2 #D27345 #5DD245 #45A4D2
square
#BA45D2 #D27345 #5DD245 #45A4D2
split-complementary
#BA45D2 #A4D245 #45D273
monochromatic
#6E1F7E #992AAF #BA45D2 #CC76DE #DFA8EA

Accessibility & contrast

On white

4.31
#BA45D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#BA45D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45D2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45D2#FFFFFF#000000##000000
##BA45D21.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1072D6
Deuteranopia (green-blind)
#527ECF
Tritanopia (blue-blind)
#BB5E86
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba45d2;
/* rgb */ color: rgb(186, 69, 210);
/* oklch */ color: oklch(60.7% 0.223 320.4);
Tailwind
colors: {
  custom: {
    50: '#d282e0',
    500: '#ba45d2',
    950: '#000000',
  },
}
SCSS
$custom: #ba45d2;
$custom-light: #d282e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45d2",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 289.787,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.60697,
    "c": 0.22299,
    "h": 320.4
  },
  "luminance": 0.19348
}

Semantic roles & 50–950 ramp

primary
#BA45D2
secondary
#A6D79C
accent
#E4445F
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA45D2

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

Preview Lab → · Contrast checker → · Palette generator →

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