#BA42C3#BA42C3

#BA42C3 is a mid, highly saturated purple. Relative luminance 0.183; OKLCH L 59.5% C 0.214 H 324.9°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA42C3
RGBrgb(186, 66, 195)
HSLhsl(296, 52%, 51%)
HSVhsv(296, 66%, 76%)
CMYKcmyk(4.6%, 66.2%, 0%, 23.5%)
CIE-LABlab(49.83, 64.25, -44.28)
CIE-LCHlch(49.83, 78.03, 325.43°)
OKLaboklab(59.52% 0.175 -0.123)
OKLCHoklch(59.52% 0.214 324.9)
XYZxyz(32.0475, 18.2776, 53.4591)
Luminance0.1828 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42C3 #4BC342
analogous
#7942C3 #BA42C3 #C3428B
triadic
#BA42C3 #C3BA42 #42C3BA
tetradic
#BA42C3 #C37942 #4BC342 #428BC3
square
#BA42C3 #C37942 #4BC342 #428BC3
split-complementary
#BA42C3 #8BC342 #42C379
monochromatic
#642169 #903098 #BA42C3 #CB70D2 #DC9FE0

Accessibility & contrast

On white

4.51
#BA42C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#BA42C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42C3
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42C3#FFFFFF#000000##000000
##BA42C31.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#276DC7
Deuteranopia (green-blind)
#5A7CC0
Tritanopia (blue-blind)
#BE567D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba42c3;
/* rgb */ color: rgb(186, 66, 195);
/* oklch */ color: oklch(59.5% 0.214 324.9);
Tailwind
colors: {
  custom: {
    50: '#d280d6',
    500: '#ba42c3',
    950: '#000000',
  },
}
SCSS
$custom: #ba42c3;
$custom-light: #d280d6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42c3",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 295.814,
    "s": 51.807,
    "l": 51.176
  },
  "oklch": {
    "l": 0.59518,
    "c": 0.21391,
    "h": 324.9
  },
  "luminance": 0.18276
}

Semantic roles & 50–950 ramp

primary
#BA42C3
secondary
#98CD94
accent
#DB4D56
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B14
muted
#837C83

Preview Lab

Preview with #BA42C3

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

Preview Lab → · Contrast checker → · Palette generator →

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