#BA46C7#BA46C7

#BA46C7 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.2% C 0.212 H 323.5°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#BA46C7
RGBrgb(186, 70, 199)
HSLhsl(294, 54%, 53%)
HSVhsv(294, 65%, 78%)
CMYKcmyk(6.5%, 64.8%, 0%, 22%)
CIE-LABlab(50.62, 63.36, -45.33)
CIE-LCHlch(50.62, 77.90, 324.42°)
OKLaboklab(60.16% 0.1707 -0.1261)
OKLCHoklch(60.16% 0.212 323.5)
XYZxyz(32.7477, 18.9448, 55.9536)
Luminance0.1894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA46C7 #53C746
analogous
#7946C7 #BA46C7 #C74694
triadic
#BA46C7 #C7BA46 #46C7BA
tetradic
#BA46C7 #C77946 #53C746 #4694C7
square
#BA46C7 #C77946 #53C746 #4694C7
split-complementary
#BA46C7 #94C746 #46C779
monochromatic
#692271 #9430A0 #BA46C7 #CC75D5 #DDA4E3

Accessibility & contrast

On white

4.39
#BA46C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#BA46C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA46C7
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA46C7#FFFFFF#000000##000000
##BA46C71.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#2970CB
Deuteranopia (green-blind)
#5A7DC4
Tritanopia (blue-blind)
#BD5A81
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba46c7;
/* rgb */ color: rgb(186, 70, 199);
/* oklch */ color: oklch(60.2% 0.212 323.5);
Tailwind
colors: {
  custom: {
    50: '#d282d8',
    500: '#ba46c7',
    950: '#000000',
  },
}
SCSS
$custom: #ba46c7;
$custom-light: #d282d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba46c7",
  "rgb": {
    "r": 186,
    "g": 70,
    "b": 199
  },
  "hsl": {
    "h": 293.953,
    "s": 53.527,
    "l": 52.745
  },
  "oklch": {
    "l": 0.60159,
    "c": 0.21218,
    "h": 323.5
  },
  "luminance": 0.18943
}

Semantic roles & 50–950 ramp

primary
#BA46C7
secondary
#9ED098
accent
#DD4B5A
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #BA46C7

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

Preview Lab → · Contrast checker → · Palette generator →

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