#BA46CC#BA46CC

#BA46CC is a mid, highly saturated purple. Relative luminance 0.192; OKLCH L 60.4% C 0.217 H 322.0°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#BA46CC
RGBrgb(186, 70, 204)
HSLhsl(292, 57%, 54%)
HSVhsv(292, 66%, 80%)
CMYKcmyk(8.8%, 65.7%, 0%, 20%)
CIE-LABlab(50.90, 64.26, -47.77)
CIE-LCHlch(50.90, 80.07, 323.38°)
OKLaboklab(60.45% 0.1707 -0.1332)
OKLCHoklch(60.45% 0.217 322)
XYZxyz(33.3378, 19.1808, 59.0613)
Luminance0.1918 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46CC #58CC46
analogous
#7746CC #BA46CC #CC469B
triadic
#BA46CC #CCBA46 #46CCBA
tetradic
#BA46CC #CC7746 #58CC46 #469BCC
square
#BA46CC #CC7746 #58CC46 #469BCC
split-complementary
#BA46CC #9BCC46 #46CC77
monochromatic
#6B2177 #972EA7 #BA46CC #CC76D9 #DEA6E6

Accessibility & contrast

On white

4.34
#BA46CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#BA46CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46CC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46CC#FFFFFF#000000##000000
##BA46CC1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2171D0
Deuteranopia (green-blind)
#577EC9
Tritanopia (blue-blind)
#BC5C83
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #ba46cc;
/* rgb */ color: rgb(186, 70, 204);
/* oklch */ color: oklch(60.4% 0.217 322.0);
Tailwind
colors: {
  custom: {
    50: '#d282dc',
    500: '#ba46cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba46cc;
$custom-light: #d282dc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46cc",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 204
  },
  "hsl": {
    "h": 291.94,
    "s": 56.78,
    "l": 53.725
  },
  "oklch": {
    "l": 0.60446,
    "c": 0.21651,
    "h": 322
  },
  "luminance": 0.19179
}

Semantic roles & 50–950 ramp

primary
#BA46CC
secondary
#A2D49A
accent
#E0485C
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#140B15
muted
#837C83

Preview Lab

Preview with #BA46CC

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

Preview Lab → · Contrast checker → · Palette generator →

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