#BA46AA#BA46AA

#BA46AA is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.6% C 0.188 H 333.5°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#BA46AA
RGBrgb(186, 70, 170)
HSLhsl(308, 46%, 50%)
HSVhsv(308, 62%, 73%)
CMYKcmyk(0%, 62.4%, 8.6%, 27.1%)
CIE-LABlab(49.16, 58.42, -30.75)
CIE-LCHlch(49.16, 66.02, 332.24°)
OKLaboklab(58.62% 0.1686 -0.084)
OKLCHoklch(58.62% 0.188 333.5)
XYZxyz(29.6957, 17.7240, 39.8795)
Luminance0.1772 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46AA #46BA56
analogous
#9046BA #BA46AA #BA4670
triadic
#BA46AA #AABA46 #46AABA
tetradic
#BA46AA #BA9046 #46BA56 #4670BA
square
#BA46AA #BA9046 #46BA56 #4670BA
split-complementary
#BA46AA #70BA46 #46BA90
monochromatic
#612459 #8E3582 #BA46AA #CB73BE #DB9FD3

Accessibility & contrast

On white

4.62
#BA46AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#BA46AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA46AA
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46AA#FFFFFF#000000##FFFFFF
##BA46AA1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436AAD
Deuteranopia (green-blind)
#697BA7
Tritanopia (blue-blind)
#C24F72
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba46aa;
/* rgb */ color: rgb(186, 70, 170);
/* oklch */ color: oklch(58.6% 0.188 333.5);
Tailwind
colors: {
  custom: {
    50: '#d281c3',
    500: '#ba46aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba46aa;
$custom-light: #d281c3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46aa",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 170
  },
  "hsl": {
    "h": 308.276,
    "s": 45.669,
    "l": 50.196
  },
  "oklch": {
    "l": 0.58622,
    "c": 0.18832,
    "h": 333.5
  },
  "luminance": 0.17722
}

Semantic roles & 50–950 ramp

primary
#BA46AA
secondary
#94C89B
accent
#D56552
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA46AA

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

Preview Lab → · Contrast checker → · Palette generator →

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