#BA42AD#BA42AD

#BA42AD is a mid, vivid purple. Relative luminance 0.174; OKLCH L 58.3% C 0.196 H 332.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#BA42AD
RGBrgb(186, 66, 173)
HSLhsl(307, 48%, 49%)
HSVhsv(307, 65%, 73%)
CMYKcmyk(0%, 64.5%, 7%, 27.1%)
CIE-LABlab(48.70, 60.55, -33.23)
CIE-LCHlch(48.70, 69.07, 331.24°)
OKLaboklab(58.34% 0.1737 -0.091)
OKLCHoklch(58.34% 0.196 332.3)
XYZxyz(29.7408, 17.3549, 41.3105)
Luminance0.1735 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA42AD #42BA4F
analogous
#8B42BA #BA42AD #BA4271
triadic
#BA42AD #ADBA42 #42ADBA
tetradic
#BA42AD #BA8B42 #42BA4F #4271BA
square
#BA42AD #BA8B42 #42BA4F #4271BA
split-complementary
#BA42AD #71BA42 #42BA8B
monochromatic
#602259 #8D3283 #BA42AD #CB6EC1 #DB9BD4

Accessibility & contrast

On white

4.70
#BA42AD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#BA42AD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA42AD
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA42AD#FFFFFF#000000##FFFFFF
##BA42AD1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D69B0
Deuteranopia (green-blind)
#667AAA
Tritanopia (blue-blind)
#C24D72
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba42ad;
/* rgb */ color: rgb(186, 66, 173);
/* oklch */ color: oklch(58.3% 0.196 332.3);
Tailwind
colors: {
  custom: {
    50: '#d27fc6',
    500: '#ba42ad',
    950: '#000000',
  },
}
SCSS
$custom: #ba42ad;
$custom-light: #d27fc6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba42ad",
  "rgb": {
    "r": 186,
    "g": 66,
    "b": 173
  },
  "hsl": {
    "h": 306.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.58337,
    "c": 0.19613,
    "h": 332.3
  },
  "luminance": 0.17353
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA42AD

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

Preview Lab → · Contrast checker → · Palette generator →

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