#BA45BD#BA45BD

#BA45BD is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.5% C 0.205 H 326.8°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#BA45BD
RGBrgb(186, 69, 189)
HSLhsl(299, 48%, 51%)
HSVhsv(299, 63%, 74%)
CMYKcmyk(1.6%, 63.5%, 0%, 25.9%)
CIE-LABlab(49.94, 62.00, -40.62)
CIE-LCHlch(49.94, 74.13, 326.77°)
OKLaboklab(59.5% 0.1715 -0.1124)
OKLCHoklch(59.5% 0.205 326.8)
XYZxyz(31.5626, 18.3715, 50.0179)
Luminance0.1837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45BD #48BD45
analogous
#7E45BD #BA45BD #BD4584
triadic
#BA45BD #BDBA45 #45BDBA
tetradic
#BA45BD #BD7E45 #48BD45 #4584BD
square
#BA45BD #BD7E45 #48BD45 #4584BD
split-complementary
#BA45BD #84BD45 #45BD7E
monochromatic
#622464 #8F3491 #BA45BD #CB72CD #DC9FDD

Accessibility & contrast

On white

4.49
#BA45BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#BA45BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45BD
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45BD#FFFFFF#000000##000000
##BA45BD1.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#336DC1
Deuteranopia (green-blind)
#5F7CBA
Tritanopia (blue-blind)
#BF567B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba45bd;
/* rgb */ color: rgb(186, 69, 189);
/* oklch */ color: oklch(59.5% 0.205 326.8);
Tailwind
colors: {
  custom: {
    50: '#d281d1',
    500: '#ba45bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba45bd;
$custom-light: #d281d1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45bd",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 189
  },
  "hsl": {
    "h": 298.5,
    "s": 47.619,
    "l": 50.588
  },
  "oklch": {
    "l": 0.59496,
    "c": 0.20502,
    "h": 326.8
  },
  "luminance": 0.18369
}

Semantic roles & 50–950 ramp

primary
#BA45BD
secondary
#96CA94
accent
#D75154
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA45BD

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

Preview Lab → · Contrast checker → · Palette generator →

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