#BA46AF#BA46AF

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

Color values

HEX#BA46AF
RGBrgb(186, 70, 175)
HSLhsl(306, 46%, 50%)
HSVhsv(306, 62%, 73%)
CMYKcmyk(0%, 62.4%, 5.9%, 27.1%)
CIE-LABlab(49.40, 59.23, -33.32)
CIE-LCHlch(49.40, 67.96, 330.64°)
OKLaboklab(58.87% 0.1692 -0.0913)
OKLCHoklch(58.87% 0.192 331.6)
XYZxyz(30.1777, 17.9168, 42.4180)
Luminance0.1792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46AF #46BA51
analogous
#8B46BA #BA46AF #BA4675
triadic
#BA46AF #AFBA46 #46AFBA
tetradic
#BA46AF #BA8B46 #46BA51 #4675BA
square
#BA46AF #BA8B46 #46BA51 #4675BA
split-complementary
#BA46AF #75BA46 #46BA8B
monochromatic
#61245C #8E3585 #BA46AF #CB73C2 #DB9FD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA46AF#FFFFFF#000000##000000
##BA46AF1.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)
#406BB2
Deuteranopia (green-blind)
#677BAC
Tritanopia (blue-blind)
#C15174
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba46af;
/* rgb */ color: rgb(186, 70, 175);
/* oklch */ color: oklch(58.9% 0.192 331.6);
Tailwind
colors: {
  custom: {
    50: '#d281c7',
    500: '#ba46af',
    950: '#000000',
  },
}
SCSS
$custom: #ba46af;
$custom-light: #d281c7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46af",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 175
  },
  "hsl": {
    "h": 305.69,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5887,
    "c": 0.19225,
    "h": 331.6
  },
  "luminance": 0.17915
}

Semantic roles & 50–950 ramp

primary
#BA46AF
secondary
#94C899
accent
#D55F52
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA46AF

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

Preview Lab → · Contrast checker → · Palette generator →

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