#BA42AE#BA42AE

#BA42AE is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.4% C 0.197 H 332.0°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#BA42AE
RGBrgb(186, 66, 174)
HSLhsl(306, 48%, 49%)
HSVhsv(306, 65%, 73%)
CMYKcmyk(0%, 64.5%, 6.5%, 27.1%)
CIE-LABlab(48.75, 60.71, -33.74)
CIE-LCHlch(48.75, 69.46, 330.94°)
OKLaboklab(58.39% 0.1738 -0.0925)
OKLCHoklch(58.39% 0.197 332)
XYZxyz(29.8379, 17.3938, 41.8220)
Luminance0.1739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42AE #42BA4E
analogous
#8A42BA #BA42AE #BA4272
triadic
#BA42AE #AEBA42 #42AEBA
tetradic
#BA42AE #BA8A42 #42BA4E #4272BA
square
#BA42AE #BA8A42 #42BA4E #4272BA
split-complementary
#BA42AE #72BA42 #42BA8A
monochromatic
#602259 #8D3284 #BA42AE #CB6EC2 #DB9BD5

Accessibility & contrast

On white

4.69
#BA42AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#BA42AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA42AE
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42AE#FFFFFF#000000##FFFFFF
##BA42AE1.004.694.484.69
#FFFFFF4.691.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C69B1
Deuteranopia (green-blind)
#657AAB
Tritanopia (blue-blind)
#C24D72
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba42ae;
/* rgb */ color: rgb(186, 66, 174);
/* oklch */ color: oklch(58.4% 0.197 332.0);
Tailwind
colors: {
  custom: {
    50: '#d27fc6',
    500: '#ba42ae',
    950: '#000000',
  },
}
SCSS
$custom: #ba42ae;
$custom-light: #d27fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42ae",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 306,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58387,
    "c": 0.19691,
    "h": 332
  },
  "luminance": 0.17392
}

Semantic roles & 50–950 ramp

primary
#BA42AE
secondary
#90C896
accent
#D75E51
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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