#BA50BB#BA50BB

#BA50BB is a mid, vivid purple. Relative luminance 0.198; OKLCH L 60.6% C 0.188 H 327.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#BA50BB
RGBrgb(186, 80, 187)
HSLhsl(299, 44%, 52%)
HSVhsv(299, 57%, 73%)
CMYKcmyk(0.5%, 57.2%, 0%, 26.7%)
CIE-LABlab(51.57, 56.89, -36.90)
CIE-LCHlch(51.57, 67.81, 327.04°)
OKLaboklab(60.65% 0.158 -0.1017)
OKLCHoklch(60.65% 0.188 327.2)
XYZxyz(32.0875, 19.7662, 49.1292)
Luminance0.1976 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50BB #51BB50
analogous
#8450BB #BA50BB #BB5087
triadic
#BA50BB #BBBA50 #50BBBA
tetradic
#BA50BB #BB8450 #51BB50 #5087BB
square
#BA50BB #BB8450 #51BB50 #5087BB
split-complementary
#BA50BB #87BB50 #50BB84
monochromatic
#682868 #933A94 #BA50BB #CB7CCC #DDA8DD

Accessibility & contrast

On white

4.24
#BA50BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#BA50BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50BB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50BB#FFFFFF#000000##000000
##BA50BB1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4472BE
Deuteranopia (green-blind)
#6780B8
Tritanopia (blue-blind)
#BF5D7E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba50bb;
/* rgb */ color: rgb(186, 80, 187);
/* oklch */ color: oklch(60.6% 0.188 327.2);
Tailwind
colors: {
  custom: {
    50: '#d187d0',
    500: '#ba50bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba50bb;
$custom-light: #d187d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50bb",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 187
  },
  "hsl": {
    "h": 299.439,
    "s": 44.033,
    "l": 52.353
  },
  "oklch": {
    "l": 0.60647,
    "c": 0.18786,
    "h": 327.2
  },
  "luminance": 0.19764
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA50BB

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

Preview Lab → · Contrast checker → · Palette generator →

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