#BA42B3#BA42B3

#BA42B3 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 58.6% C 0.201 H 330.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BA42B3
RGBrgb(186, 66, 179)
HSLhsl(304, 48%, 49%)
HSVhsv(304, 65%, 73%)
CMYKcmyk(0%, 64.5%, 3.8%, 27.1%)
CIE-LABlab(49.00, 61.53, -36.29)
CIE-LCHlch(49.00, 71.43, 329.47°)
OKLaboklab(58.65% 0.1743 -0.0998)
OKLCHoklch(58.65% 0.201 330.2)
XYZxyz(30.3344, 17.5924, 44.4371)
Luminance0.1759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42B3 #42BA49
analogous
#8542BA #BA42B3 #BA4277
triadic
#BA42B3 #B3BA42 #42B3BA
tetradic
#BA42B3 #BA8542 #42BA49 #4277BA
square
#BA42B3 #BA8542 #42BA49 #4277BA
split-complementary
#BA42B3 #77BA42 #42BA85
monochromatic
#60225C #8D3288 #BA42B3 #CB6EC6 #DB9BD8

Accessibility & contrast

On white

4.65
#BA42B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#BA42B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA42B3
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42B3#FFFFFF#000000##FFFFFF
##BA42B31.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386AB6
Deuteranopia (green-blind)
#637AB0
Tritanopia (blue-blind)
#C14F75
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba42b3;
/* rgb */ color: rgb(186, 66, 179);
/* oklch */ color: oklch(58.6% 0.201 330.2);
Tailwind
colors: {
  custom: {
    50: '#d27fca',
    500: '#ba42b3',
    950: '#000000',
  },
}
SCSS
$custom: #ba42b3;
$custom-light: #d27fca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42b3",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 179
  },
  "hsl": {
    "h": 303.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58645,
    "c": 0.20085,
    "h": 330.2
  },
  "luminance": 0.1759
}

Semantic roles & 50–950 ramp

primary
#BA42B3
secondary
#90C893
accent
#D75851
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82

Preview Lab

Preview with #BA42B3

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

Preview Lab → · Contrast checker → · Palette generator →

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