#BA42BC#BA42BC

#BA42BC is a mid, highly saturated purple. Relative luminance 0.180; OKLCH L 59.1% C 0.208 H 327.1°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#BA42BC
RGBrgb(186, 66, 188)
HSLhsl(299, 48%, 50%)
HSVhsv(299, 65%, 74%)
CMYKcmyk(1.1%, 64.9%, 0%, 26.3%)
CIE-LABlab(49.46, 63.04, -40.81)
CIE-LCHlch(49.46, 75.10, 327.08°)
OKLaboklab(59.13% 0.1748 -0.1129)
OKLCHoklch(59.13% 0.208 327.1)
XYZxyz(31.2745, 17.9684, 49.3882)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42BC #44BC42
analogous
#7D42BC #BA42BC #BC4281
triadic
#BA42BC #BCBA42 #42BCBA
tetradic
#BA42BC #BC7D42 #44BC42 #4281BC
square
#BA42BC #BC7D42 #44BC42 #4281BC
split-complementary
#BA42BC #81BC42 #42BC7D
monochromatic
#602261 #8D328F #BA42BC #CB6FCC #DB9CDC

Accessibility & contrast

On white

4.57
#BA42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#BA42BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42BC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42BC#FFFFFF#000000##000000
##BA42BC1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#306CC0
Deuteranopia (green-blind)
#5E7BB9
Tritanopia (blue-blind)
#BF5379
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba42bc;
/* rgb */ color: rgb(186, 66, 188);
/* oklch */ color: oklch(59.1% 0.208 327.1);
Tailwind
colors: {
  custom: {
    50: '#d27fd0',
    500: '#ba42bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba42bc;
$custom-light: #d27fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42bc",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 299.016,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.59127,
    "c": 0.20812,
    "h": 327.1
  },
  "luminance": 0.17966
}

Semantic roles & 50–950 ramp

primary
#BA42BC
secondary
#92C991
accent
#D85052
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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