#BA42C9#BA42C9

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

Color values

HEX#BA42C9
RGBrgb(186, 66, 201)
HSLhsl(293, 56%, 52%)
HSVhsv(293, 67%, 79%)
CMYKcmyk(7.5%, 67.2%, 0%, 21.2%)
CIE-LABlab(50.16, 65.31, -47.21)
CIE-LCHlch(50.16, 80.59, 324.14°)
OKLaboklab(59.86% 0.1751 -0.1315)
OKLCHoklch(59.86% 0.219 323.1)
XYZxyz(32.7395, 18.5544, 57.1039)
Luminance0.1855 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42C9 #51C942
analogous
#7642C9 #BA42C9 #C94295
triadic
#BA42C9 #C9BA42 #42C9BA
tetradic
#BA42C9 #C97642 #51C942 #4295C9
square
#BA42C9 #C97642 #51C942 #4295C9
split-complementary
#BA42C9 #95C942 #42C976
monochromatic
#682070 #932EA0 #BA42C9 #CB72D7 #DDA1E4

Accessibility & contrast

On white

4.46
#BA42C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#BA42C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42C9
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42C9#FFFFFF#000000##000000
##BA42C91.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D6ECD
Deuteranopia (green-blind)
#567CC6
Tritanopia (blue-blind)
#BD5880
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba42c9;
/* rgb */ color: rgb(186, 66, 201);
/* oklch */ color: oklch(59.9% 0.219 323.1);
Tailwind
colors: {
  custom: {
    50: '#d280da',
    500: '#ba42c9',
    950: '#000000',
  },
}
SCSS
$custom: #ba42c9;
$custom-light: #d280da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42c9",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 201
  },
  "hsl": {
    "h": 293.333,
    "s": 55.556,
    "l": 52.353
  },
  "oklch": {
    "l": 0.59862,
    "c": 0.21896,
    "h": 323.1
  },
  "luminance": 0.18553
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA42C9

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

Preview Lab → · Contrast checker → · Palette generator →

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