#BA42DB#BA42DB

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

Color values

HEX#BA42DB
RGBrgb(186, 66, 219)
HSLhsl(287, 68%, 56%)
HSVhsv(287, 70%, 86%)
CMYKcmyk(15.1%, 69.9%, 0%, 14.1%)
CIE-LABlab(51.21, 68.62, -55.84)
CIE-LCHlch(51.21, 88.47, 320.86°)
OKLaboklab(60.95% 0.1743 -0.1567)
OKLCHoklch(60.95% 0.234 318)
XYZxyz(34.9823, 19.4516, 68.9159)
Luminance0.1945 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42DB #63DB42
analogous
#6D42DB #BA42DB #DB42AF
triadic
#BA42DB #DBBA42 #42DBBA
tetradic
#BA42DB #DB6D42 #63DB42 #42AFDB
square
#BA42DB #DB6D42 #63DB42 #42AFDB
split-complementary
#BA42DB #AFDB42 #42DB6D
monochromatic
#711A89 #9B24BC #BA42DB #CD75E5 #E0A9EF

Accessibility & contrast

On white

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

On black

4.89
#BA42DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42DB
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42DB#FFFFFF#000000##000000
##BA42DB1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#497ED7
Tritanopia (blue-blind)
#B9608A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba42db;
/* rgb */ color: rgb(186, 66, 219);
/* oklch */ color: oklch(61.0% 0.234 318.0);
Tailwind
colors: {
  custom: {
    50: '#d380e7',
    500: '#ba42db',
    950: '#000000',
  },
}
SCSS
$custom: #ba42db;
$custom-light: #d380e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42db",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 287.059,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60951,
    "c": 0.23442,
    "h": 318
  },
  "luminance": 0.1945
}

Semantic roles & 50–950 ramp

primary
#BA42DB
secondary
#AADC9D
accent
#EB3D62
background
#FDF8FE
surface
#FAEFFC
border
#D3CAD5
text
#150B16
muted
#837C84

Preview Lab

Preview with #BA42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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