#BA42DC#BA42DC

#BA42DC is a mid, highly saturated purple. Relative luminance 0.195; OKLCH L 61.0% C 0.235 H 317.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#BA42DC
RGBrgb(186, 66, 220)
HSLhsl(287, 69%, 56%)
HSVhsv(287, 70%, 86%)
CMYKcmyk(15.5%, 70%, 0%, 13.7%)
CIE-LABlab(51.27, 68.81, -56.31)
CIE-LCHlch(51.27, 88.91, 320.70°)
OKLaboklab(61.01% 0.1743 -0.1581)
OKLCHoklch(61.01% 0.235 317.8)
XYZxyz(35.1143, 19.5044, 69.6113)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42DC #64DC42
analogous
#6D42DC #BA42DC #DC42B1
triadic
#BA42DC #DCBA42 #42DCBA
tetradic
#BA42DC #DC6D42 #64DC42 #42B1DC
square
#BA42DC #DC6D42 #64DC42 #42B1DC
split-complementary
#BA42DC #B1DC42 #42DC6D
monochromatic
#711A8A #9C23BE #BA42DC #CD76E6 #E0A9EF

Accessibility & contrast

On white

4.29
#BA42DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#BA42DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42DC
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42DC#FFFFFF#000000##000000
##BA42DC1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0073E0
Deuteranopia (green-blind)
#487ED8
Tritanopia (blue-blind)
#B9608B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba42dc;
/* rgb */ color: rgb(186, 66, 220);
/* oklch */ color: oklch(61.0% 0.235 317.8);
Tailwind
colors: {
  custom: {
    50: '#d380e8',
    500: '#ba42dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba42dc;
$custom-light: #d380e8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42dc",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 286.753,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61014,
    "c": 0.23529,
    "h": 317.8
  },
  "luminance": 0.19503
}

Semantic roles & 50–950 ramp

primary
#BA42DC
secondary
#ABDD9D
accent
#EC3C63
background
#FDF8FE
surface
#FAEFFD
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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