#BA42AA#BA42AA

#BA42AA is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.2% C 0.194 H 333.5°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#BA42AA
RGBrgb(186, 66, 170)
HSLhsl(308, 48%, 49%)
HSVhsv(308, 65%, 73%)
CMYKcmyk(0%, 64.5%, 8.6%, 27.1%)
CIE-LABlab(48.56, 60.07, -31.69)
CIE-LCHlch(48.56, 67.92, 332.19°)
OKLaboklab(58.19% 0.1734 -0.0866)
OKLCHoklch(58.19% 0.194 333.5)
XYZxyz(29.4537, 17.2401, 39.7988)
Luminance0.1724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42AA #42BA52
analogous
#8E42BA #BA42AA #BA426E
triadic
#BA42AA #AABA42 #42AABA
tetradic
#BA42AA #BA8E42 #42BA52 #426EBA
square
#BA42AA #BA8E42 #42BA52 #426EBA
split-complementary
#BA42AA #6EBA42 #42BA8E
monochromatic
#602257 #8D3281 #BA42AA #CB6EBF #DB9BD3

Accessibility & contrast

On white

4.72
#BA42AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#BA42AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA42AA
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42AA#FFFFFF#000000##FFFFFF
##BA42AA1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F68AD
Deuteranopia (green-blind)
#677AA7
Tritanopia (blue-blind)
#C24C70
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #ba42aa;
/* rgb */ color: rgb(186, 66, 170);
/* oklch */ color: oklch(58.2% 0.194 333.5);
Tailwind
colors: {
  custom: {
    50: '#d27fc3',
    500: '#ba42aa',
    950: '#000000',
  },
}
SCSS
$custom: #ba42aa;
$custom-light: #d27fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42aa",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 308,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58186,
    "c": 0.19383,
    "h": 333.5
  },
  "luminance": 0.17238
}

Semantic roles & 50–950 ramp

primary
#BA42AA
secondary
#90C898
accent
#D76351
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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