#BA42B2#BA42B2

#BA42B2 is a mid, highly saturated purple. Relative luminance 0.175; OKLCH L 58.6% C 0.200 H 330.5°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA42B2
RGBrgb(186, 66, 178)
HSLhsl(304, 48%, 49%)
HSVhsv(304, 65%, 73%)
CMYKcmyk(0%, 64.5%, 4.3%, 27.1%)
CIE-LABlab(48.95, 61.36, -35.78)
CIE-LCHlch(48.95, 71.03, 329.76°)
OKLaboklab(58.59% 0.1742 -0.0984)
OKLCHoklch(58.59% 0.2 330.5)
XYZxyz(30.2337, 17.5521, 43.9063)
Luminance0.1755 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42B2 #42BA4A
analogous
#8642BA #BA42B2 #BA4276
triadic
#BA42B2 #B2BA42 #42B2BA
tetradic
#BA42B2 #BA8642 #42BA4A #4276BA
square
#BA42B2 #BA8642 #42BA4A #4276BA
split-complementary
#BA42B2 #76BA42 #42BA86
monochromatic
#60225C #8D3287 #BA42B2 #CB6EC5 #DB9BD7

Accessibility & contrast

On white

4.66
#BA42B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#BA42B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA42B2
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42B2#FFFFFF#000000##FFFFFF
##BA42B21.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#396AB5
Deuteranopia (green-blind)
#637AAF
Tritanopia (blue-blind)
#C14F74
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba42b2;
/* rgb */ color: rgb(186, 66, 178);
/* oklch */ color: oklch(58.6% 0.200 330.5);
Tailwind
colors: {
  custom: {
    50: '#d27fc9',
    500: '#ba42b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba42b2;
$custom-light: #d27fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42b2",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 178
  },
  "hsl": {
    "h": 304,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58593,
    "c": 0.20006,
    "h": 330.5
  },
  "luminance": 0.1755
}

Semantic roles & 50–950 ramp

primary
#BA42B2
secondary
#90C894
accent
#D75A51
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA42B2

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

Preview Lab → · Contrast checker → · Palette generator →

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