#BA42BB#BA42BB

#BA42BB is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.1% C 0.207 H 327.5°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#BA42BB
RGBrgb(186, 66, 187)
HSLhsl(300, 48%, 50%)
HSVhsv(300, 65%, 73%)
CMYKcmyk(0.5%, 64.7%, 0%, 26.7%)
CIE-LABlab(49.41, 62.87, -40.31)
CIE-LCHlch(49.41, 74.68, 327.33°)
OKLaboklab(59.07% 0.1748 -0.1115)
OKLCHoklch(59.07% 0.207 327.5)
XYZxyz(31.1671, 17.9255, 48.8224)
Luminance0.1792 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42BB #43BB42
analogous
#7E42BB #BA42BB #BB4280
triadic
#BA42BB #BBBA42 #42BBBA
tetradic
#BA42BB #BB7E42 #43BB42 #4280BB
square
#BA42BB #BB7E42 #43BB42 #4280BB
split-complementary
#BA42BB #80BB42 #42BB7E
monochromatic
#602261 #8D328E #BA42BB #CB6ECC #DB9CDC

Accessibility & contrast

On white

4.58
#BA42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#BA42BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42BB
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42BB#FFFFFF#000000##000000
##BA42BB1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#316BBF
Deuteranopia (green-blind)
#5F7BB8
Tritanopia (blue-blind)
#BF5379
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #ba42bb;
/* rgb */ color: rgb(186, 66, 187);
/* oklch */ color: oklch(59.1% 0.207 327.5);
Tailwind
colors: {
  custom: {
    50: '#d27fd0',
    500: '#ba42bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba42bb;
$custom-light: #d27fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42bb",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 299.504,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59073,
    "c": 0.2073,
    "h": 327.5
  },
  "luminance": 0.17923
}

Semantic roles & 50–950 ramp

primary
#BA42BB
secondary
#91C891
accent
#D75051
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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