#BA42BF#BA42BF

#BA42BF is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.3% C 0.211 H 326.2°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#BA42BF
RGBrgb(186, 66, 191)
HSLhsl(298, 49%, 50%)
HSVhsv(298, 65%, 75%)
CMYKcmyk(2.6%, 65.4%, 0%, 25.1%)
CIE-LABlab(49.62, 63.56, -42.30)
CIE-LCHlch(49.62, 76.35, 326.35°)
OKLaboklab(59.29% 0.1749 -0.1172)
OKLCHoklch(59.29% 0.211 326.2)
XYZxyz(31.6013, 18.0991, 51.1091)
Luminance0.1810 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42BF #47BF42
analogous
#7B42BF #BA42BF #BF4285
triadic
#BA42BF #BFBA42 #42BFBA
tetradic
#BA42BF #BF7B42 #47BF42 #4285BF
square
#BA42BF #BF7B42 #47BF42 #4285BF
split-complementary
#BA42BF #85BF42 #42BF7B
monochromatic
#622265 #8E3292 #BA42BF #CB70CE #DB9DDE

Accessibility & contrast

On white

4.55
#BA42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#BA42BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42BF
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42BF#FFFFFF#000000##000000
##BA42BF1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C6CC3
Deuteranopia (green-blind)
#5D7BBC
Tritanopia (blue-blind)
#BF547B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba42bf;
/* rgb */ color: rgb(186, 66, 191);
/* oklch */ color: oklch(59.3% 0.211 326.2);
Tailwind
colors: {
  custom: {
    50: '#d280d3',
    500: '#ba42bf',
    950: '#000000',
  },
}
SCSS
$custom: #ba42bf;
$custom-light: #d280d3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42bf",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 297.6,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.59293,
    "c": 0.21059,
    "h": 326.2
  },
  "luminance": 0.18097
}

Semantic roles & 50–950 ramp

primary
#BA42BF
secondary
#95CA93
accent
#D94F54
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#140B14
muted
#837C83

Preview Lab

Preview with #BA42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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