#BA42BD#BA42BD

#BA42BD is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.2% C 0.209 H 326.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#BA42BD
RGBrgb(186, 66, 189)
HSLhsl(299, 48%, 50%)
HSVhsv(299, 65%, 74%)
CMYKcmyk(1.6%, 65.1%, 0%, 25.9%)
CIE-LABlab(49.51, 63.21, -41.31)
CIE-LCHlch(49.51, 75.51, 326.84°)
OKLaboklab(59.18% 0.1749 -0.1144)
OKLCHoklch(59.18% 0.209 326.8)
XYZxyz(31.3827, 18.0117, 49.9579)
Luminance0.1801 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42BD #45BD42
analogous
#7D42BD #BA42BD #BD4282
triadic
#BA42BD #BDBA42 #42BDBA
tetradic
#BA42BD #BD7D42 #45BD42 #4282BD
square
#BA42BD #BD7D42 #45BD42 #4282BD
split-complementary
#BA42BD #82BD42 #42BD7D
monochromatic
#612262 #8D3290 #BA42BD #CB6FCD #DB9DDD

Accessibility & contrast

On white

4.56
#BA42BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#BA42BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42BD
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42BD#FFFFFF#000000##000000
##BA42BD1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E6CC1
Deuteranopia (green-blind)
#5E7BBA
Tritanopia (blue-blind)
#BF537A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba42bd;
/* rgb */ color: rgb(186, 66, 189);
/* oklch */ color: oklch(59.2% 0.209 326.8);
Tailwind
colors: {
  custom: {
    50: '#d27fd1',
    500: '#ba42bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba42bd;
$custom-light: #d27fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42bd",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 189
  },
  "hsl": {
    "h": 298.537,
    "s": 48.235,
    "l": 50
  },
  "oklch": {
    "l": 0.59182,
    "c": 0.20894,
    "h": 326.8
  },
  "luminance": 0.1801
}

Semantic roles & 50–950 ramp

primary
#BA42BD
secondary
#93C992
accent
#D85053
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA42BD

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

Preview Lab → · Contrast checker → · Palette generator →

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