#BA45C9#BA45C9

#BA45C9 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.2% C 0.215 H 323.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#BA45C9
RGBrgb(186, 69, 201)
HSLhsl(293, 55%, 53%)
HSVhsv(293, 66%, 79%)
CMYKcmyk(7.5%, 65.7%, 0%, 21.2%)
CIE-LABlab(50.59, 64.12, -46.54)
CIE-LCHlch(50.59, 79.23, 324.03°)
OKLaboklab(60.17% 0.1718 -0.1296)
OKLCHoklch(60.17% 0.215 323)
XYZxyz(32.9194, 18.9142, 57.1639)
Luminance0.1891 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45C9 #54C945
analogous
#7845C9 #BA45C9 #C94596
triadic
#BA45C9 #C9BA45 #45C9BA
tetradic
#BA45C9 #C97845 #54C945 #4596C9
square
#BA45C9 #C97845 #54C945 #4596C9
split-complementary
#BA45C9 #96C945 #45C978
monochromatic
#692172 #952FA2 #BA45C9 #CC74D7 #DDA4E5

Accessibility & contrast

On white

4.39
#BA45C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#BA45C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45C9
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45C9#FFFFFF#000000##000000
##BA45C91.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2470CD
Deuteranopia (green-blind)
#587DC6
Tritanopia (blue-blind)
#BD5A81
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba45c9;
/* rgb */ color: rgb(186, 69, 201);
/* oklch */ color: oklch(60.2% 0.215 323.0);
Tailwind
colors: {
  custom: {
    50: '#d281da',
    500: '#ba45c9',
    950: '#000000',
  },
}
SCSS
$custom: #ba45c9;
$custom-light: #d281da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45c9",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 201
  },
  "hsl": {
    "h": 293.182,
    "s": 55,
    "l": 52.941
  },
  "oklch": {
    "l": 0.60168,
    "c": 0.21519,
    "h": 323
  },
  "luminance": 0.18912
}

Semantic roles & 50–950 ramp

primary
#BA45C9
secondary
#9FD198
accent
#DE495A
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA45C9

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

Preview Lab → · Contrast checker → · Palette generator →

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