#BA45B2#BA45B2

#BA45B2 is a mid, vivid purple. Relative luminance 0.179; OKLCH L 58.9% C 0.196 H 330.5°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#BA45B2
RGBrgb(186, 69, 178)
HSLhsl(304, 46%, 50%)
HSVhsv(304, 63%, 73%)
CMYKcmyk(0%, 62.9%, 4.3%, 27.1%)
CIE-LABlab(49.39, 60.14, -35.09)
CIE-LCHlch(49.39, 69.63, 329.74°)
OKLaboklab(58.91% 0.1707 -0.0964)
OKLCHoklch(58.91% 0.196 330.5)
XYZxyz(30.4135, 17.9119, 43.9663)
Luminance0.1791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45B2 #45BA4D
analogous
#8845BA #BA45B2 #BA4577
triadic
#BA45B2 #B2BA45 #45B2BA
tetradic
#BA45B2 #BA8845 #45BA4D #4577BA
square
#BA45B2 #BA8845 #45BA4D #4577BA
split-complementary
#BA45B2 #77BA45 #45BA88
monochromatic
#61245D #8D3487 #BA45B2 #CB72C4 #DB9ED7

Accessibility & contrast

On white

4.58
#BA45B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#BA45B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA45B2
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45B2#FFFFFF#000000##000000
##BA45B21.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D6BB5
Deuteranopia (green-blind)
#657BAF
Tritanopia (blue-blind)
#C15175
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba45b2;
/* rgb */ color: rgb(186, 69, 178);
/* oklch */ color: oklch(58.9% 0.196 330.5);
Tailwind
colors: {
  custom: {
    50: '#d281c9',
    500: '#ba45b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba45b2;
$custom-light: #d281c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45b2",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 304.103,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.58913,
    "c": 0.19602,
    "h": 330.5
  },
  "luminance": 0.1791
}

Semantic roles & 50–950 ramp

primary
#BA45B2
secondary
#93C897
accent
#D65B52
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA45B2

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

Preview Lab → · Contrast checker → · Palette generator →

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