#BA45B7#BA45B7

#BA45B7 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.2% C 0.200 H 328.8°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#BA45B7
RGBrgb(186, 69, 183)
HSLhsl(302, 46%, 50%)
HSVhsv(302, 63%, 73%)
CMYKcmyk(0%, 62.9%, 1.6%, 27.1%)
CIE-LABlab(49.64, 60.98, -37.62)
CIE-LCHlch(49.64, 71.65, 328.33°)
OKLaboklab(59.17% 0.1711 -0.1037)
OKLCHoklch(59.17% 0.2 328.8)
XYZxyz(30.9247, 18.1164, 46.6586)
Luminance0.1811 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45B7 #45BA48
analogous
#8245BA #BA45B7 #BA457D
triadic
#BA45B7 #B7BA45 #45B7BA
tetradic
#BA45B7 #BA8245 #45BA48 #457DBA
square
#BA45B7 #BA8245 #45BA48 #457DBA
split-complementary
#BA45B7 #7DBA45 #45BA82
monochromatic
#61245F #8D348B #BA45B7 #CB72C8 #DB9EDA

Accessibility & contrast

On white

4.54
#BA45B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#BA45B7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45B7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45B7#FFFFFF#000000##000000
##BA45B71.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#396CBA
Deuteranopia (green-blind)
#637CB4
Tritanopia (blue-blind)
#C05378
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba45b7;
/* rgb */ color: rgb(186, 69, 183);
/* oklch */ color: oklch(59.2% 0.200 328.8);
Tailwind
colors: {
  custom: {
    50: '#d281cd',
    500: '#ba45b7',
    950: '#000000',
  },
}
SCSS
$custom: #ba45b7;
$custom-light: #d281cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45b7",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 183
  },
  "hsl": {
    "h": 301.538,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.59174,
    "c": 0.20007,
    "h": 328.8
  },
  "luminance": 0.18114
}

Semantic roles & 50–950 ramp

primary
#BA45B7
secondary
#93C895
accent
#D65652
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA45B7

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

Preview Lab → · Contrast checker → · Palette generator →

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