#BA42BE#BA42BE

#BA42BE is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.2% C 0.210 H 326.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#BA42BE
RGBrgb(186, 66, 190)
HSLhsl(298, 49%, 50%)
HSVhsv(298, 65%, 75%)
CMYKcmyk(2.1%, 65.3%, 0%, 25.5%)
CIE-LABlab(49.56, 63.38, -41.81)
CIE-LCHlch(49.56, 75.93, 326.59°)
OKLaboklab(59.24% 0.1749 -0.1158)
OKLCHoklch(59.24% 0.21 326.5)
XYZxyz(31.4916, 18.0553, 50.5315)
Luminance0.1805 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42BE #46BE42
analogous
#7C42BE #BA42BE #BE4284
triadic
#BA42BE #BEBA42 #42BEBA
tetradic
#BA42BE #BE7C42 #46BE42 #4284BE
square
#BA42BE #BE7C42 #46BE42 #4284BE
split-complementary
#BA42BE #84BE42 #42BE7C
monochromatic
#612263 #8E3291 #BA42BE #CB70CE #DB9DDD

Accessibility & contrast

On white

4.55
#BA42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#BA42BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA42BE
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42BE#FFFFFF#000000##000000
##BA42BE1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D6CC2
Deuteranopia (green-blind)
#5D7BBB
Tritanopia (blue-blind)
#BF547B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #ba42be;
/* rgb */ color: rgb(186, 66, 190);
/* oklch */ color: oklch(59.2% 0.210 326.5);
Tailwind
colors: {
  custom: {
    50: '#d27fd2',
    500: '#ba42be',
    950: '#000000',
  },
}
SCSS
$custom: #ba42be;
$custom-light: #d27fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42be",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 298.065,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.59238,
    "c": 0.20976,
    "h": 326.5
  },
  "luminance": 0.18053
}

Semantic roles & 50–950 ramp

primary
#BA42BE
secondary
#94CA92
accent
#D84F54
background
#FDF8FC
surface
#FAEFF9
border
#D3CAD2
text
#140B14
muted
#837C82

Preview Lab

Preview with #BA42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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