#BA45C7#BA45C7

#BA45C7 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.1% C 0.213 H 323.6°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#BA45C7
RGBrgb(186, 69, 199)
HSLhsl(294, 54%, 53%)
HSVhsv(294, 65%, 78%)
CMYKcmyk(6.5%, 65.3%, 0%, 22%)
CIE-LABlab(50.48, 63.76, -45.56)
CIE-LCHlch(50.48, 78.37, 324.45°)
OKLaboklab(60.05% 0.1718 -0.1267)
OKLCHoklch(60.05% 0.213 323.6)
XYZxyz(32.6857, 18.8207, 55.9329)
Luminance0.1882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45C7 #52C745
analogous
#7945C7 #BA45C7 #C74593
triadic
#BA45C7 #C7BA45 #45C7BA
tetradic
#BA45C7 #C77945 #52C745 #4593C7
square
#BA45C7 #C77945 #52C745 #4593C7
split-complementary
#BA45C7 #93C745 #45C779
monochromatic
#682270 #94309F #BA45C7 #CB74D5 #DDA3E3

Accessibility & contrast

On white

4.41
#BA45C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#BA45C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45C7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45C7#FFFFFF#000000##000000
##BA45C71.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#276FCB
Deuteranopia (green-blind)
#5A7DC4
Tritanopia (blue-blind)
#BD5A80
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba45c7;
/* rgb */ color: rgb(186, 69, 199);
/* oklch */ color: oklch(60.1% 0.213 323.6);
Tailwind
colors: {
  custom: {
    50: '#d281d8',
    500: '#ba45c7',
    950: '#000000',
  },
}
SCSS
$custom: #ba45c7;
$custom-light: #d281d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45c7",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 199
  },
  "hsl": {
    "h": 294,
    "s": 53.719,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60054,
    "c": 0.21348,
    "h": 323.6
  },
  "luminance": 0.18819
}

Semantic roles & 50–950 ramp

primary
#BA45C7
secondary
#9DD098
accent
#DD4B59
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #BA45C7

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

Preview Lab → · Contrast checker → · Palette generator →

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