#BA50BC#BA50BC

#BA50BC is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.7% C 0.189 H 326.9°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#BA50BC
RGBrgb(186, 80, 188)
HSLhsl(299, 45%, 53%)
HSVhsv(299, 57%, 74%)
CMYKcmyk(1.1%, 57.4%, 0%, 26.3%)
CIE-LABlab(51.62, 57.07, -37.40)
CIE-LCHlch(51.62, 68.23, 326.76°)
OKLaboklab(60.7% 0.1581 -0.1031)
OKLCHoklch(60.7% 0.189 326.9)
XYZxyz(32.1949, 19.8092, 49.6950)
Luminance0.1981 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50BC #52BC50
analogous
#8450BC #BA50BC #BC5088
triadic
#BA50BC #BCBA50 #50BCBA
tetradic
#BA50BC #BC8450 #52BC50 #5088BC
square
#BA50BC #BC8450 #52BC50 #5088BC
split-complementary
#BA50BC #88BC50 #50BC84
monochromatic
#682869 #943996 #BA50BC #CB7CCD #DDA9DE

Accessibility & contrast

On white

4.23
#BA50BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#BA50BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50BC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50BC#FFFFFF#000000##000000
##BA50BC1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4372BF
Deuteranopia (green-blind)
#6780B9
Tritanopia (blue-blind)
#BF5D7F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba50bc;
/* rgb */ color: rgb(186, 80, 188);
/* oklch */ color: oklch(60.7% 0.189 326.9);
Tailwind
colors: {
  custom: {
    50: '#d187d0',
    500: '#ba50bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba50bc;
$custom-light: #d187d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50bc",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 188
  },
  "hsl": {
    "h": 298.889,
    "s": 44.628,
    "l": 52.549
  },
  "oklch": {
    "l": 0.60699,
    "c": 0.18873,
    "h": 326.9
  },
  "luminance": 0.19807
}

Semantic roles & 50–950 ramp

primary
#BA50BC
secondary
#9DCB9C
accent
#D45356
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA50BC

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

Preview Lab → · Contrast checker → · Palette generator →

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