#BA42CA#BA42CA

#BA42CA is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 59.9% C 0.220 H 322.8°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#BA42CA
RGBrgb(186, 66, 202)
HSLhsl(293, 56%, 53%)
HSVhsv(293, 67%, 79%)
CMYKcmyk(7.9%, 67.3%, 0%, 20.8%)
CIE-LABlab(50.22, 65.49, -47.70)
CIE-LCHlch(50.22, 81.02, 323.93°)
OKLaboklab(59.92% 0.175 -0.133)
OKLCHoklch(59.92% 0.22 322.8)
XYZxyz(32.8575, 18.6016, 57.7254)
Luminance0.1860 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42CA #52CA42
analogous
#7642CA #BA42CA #CA4296
triadic
#BA42CA #CABA42 #42CABA
tetradic
#BA42CA #CA7642 #52CA42 #4296CA
square
#BA42CA #CA7642 #52CA42 #4296CA
split-complementary
#BA42CA #96CA42 #42CA76
monochromatic
#682072 #942DA2 #BA42CA #CB72D7 #DDA2E5

Accessibility & contrast

On white

4.45
#BA42CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#BA42CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42CA
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42CA#FFFFFF#000000##000000
##BA42CA1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B6FCE
Deuteranopia (green-blind)
#567CC7
Tritanopia (blue-blind)
#BD5981
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba42ca;
/* rgb */ color: rgb(186, 66, 202);
/* oklch */ color: oklch(59.9% 0.220 322.8);
Tailwind
colors: {
  custom: {
    50: '#d280db',
    500: '#ba42ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba42ca;
$custom-light: #d280db;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42ca",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 292.941,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.59921,
    "c": 0.21981,
    "h": 322.8
  },
  "luminance": 0.186
}

Semantic roles & 50–950 ramp

primary
#BA42CA
secondary
#9DD196
accent
#DF485A
background
#FDF8FD
surface
#FAEFFB
border
#D3CAD4
text
#150B15
muted
#837C83

Preview Lab

Preview with #BA42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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