#BA45AF#BA45AF

#BA45AF is a mid, vivid purple. Relative luminance 0.178; OKLCH L 58.8% C 0.194 H 331.6°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BA45AF
RGBrgb(186, 69, 175)
HSLhsl(306, 46%, 50%)
HSVhsv(306, 63%, 73%)
CMYKcmyk(0%, 62.9%, 5.9%, 27.1%)
CIE-LABlab(49.24, 59.65, -33.56)
CIE-LCHlch(49.24, 68.44, 330.64°)
OKLaboklab(58.76% 0.1704 -0.092)
OKLCHoklch(58.76% 0.194 331.6)
XYZxyz(30.1156, 17.7927, 42.3973)
Luminance0.1779 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA45AF #45BA50
analogous
#8A45BA #BA45AF #BA4575
triadic
#BA45AF #AFBA45 #45AFBA
tetradic
#BA45AF #BA8A45 #45BA50 #4575BA
square
#BA45AF #BA8A45 #45BA50 #4575BA
split-complementary
#BA45AF #75BA45 #45BA8A
monochromatic
#61245B #8D3485 #BA45AF #CB72C2 #DB9ED5

Accessibility & contrast

On white

4.61
#BA45AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#BA45AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA45AF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA45AF#FFFFFF#000000##FFFFFF
##BA45AF1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6AB2
Deuteranopia (green-blind)
#667BAC
Tritanopia (blue-blind)
#C15074
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba45af;
/* rgb */ color: rgb(186, 69, 175);
/* oklch */ color: oklch(58.8% 0.194 331.6);
Tailwind
colors: {
  custom: {
    50: '#d281c7',
    500: '#ba45af',
    950: '#000000',
  },
}
SCSS
$custom: #ba45af;
$custom-light: #d281c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba45af",
  "rgb": {
    "r": 186,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 305.641,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.5876,
    "c": 0.19363,
    "h": 331.6
  },
  "luminance": 0.1779
}

Semantic roles & 50–950 ramp

primary
#BA45AF
secondary
#93C898
accent
#D65F52
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA45AF

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

Preview Lab → · Contrast checker → · Palette generator →

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