#BA50B1#BA50B1

#BA50B1 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.1% C 0.179 H 330.9°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#BA50B1
RGBrgb(186, 80, 177)
HSLhsl(305, 43%, 52%)
HSVhsv(305, 57%, 73%)
CMYKcmyk(0%, 57%, 4.8%, 27.1%)
CIE-LABlab(51.10, 55.16, -31.83)
CIE-LCHlch(51.10, 63.68, 330.02°)
OKLaboklab(60.15% 0.1567 -0.0871)
OKLCHoklch(60.15% 0.179 330.9)
XYZxyz(31.0540, 19.3528, 43.6863)
Luminance0.1935 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50B1 #50BA59
analogous
#8E50BA #BA50B1 #BA507C
triadic
#BA50B1 #B1BA50 #50B1BA
tetradic
#BA50B1 #BA8E50 #50BA59 #507CBA
square
#BA50B1 #BA8E50 #50BA59 #507CBA
split-complementary
#BA50B1 #7CBA50 #50BA8E
monochromatic
#672962 #933A8B #BA50B1 #CB7CC5 #DDA8D8

Accessibility & contrast

On white

4.31
#BA50B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#BA50B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50B1
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50B1#FFFFFF#000000##000000
##BA50B11.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A70B4
Deuteranopia (green-blind)
#6C7FAE
Tritanopia (blue-blind)
#C15979
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba50b1;
/* rgb */ color: rgb(186, 80, 177);
/* oklch */ color: oklch(60.1% 0.179 330.9);
Tailwind
colors: {
  custom: {
    50: '#d187c8',
    500: '#ba50b1',
    950: '#000000',
  },
}
SCSS
$custom: #ba50b1;
$custom-light: #d187c8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50b1",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 177
  },
  "hsl": {
    "h": 305.094,
    "s": 43.443,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60145,
    "c": 0.17933,
    "h": 330.9
  },
  "luminance": 0.19351
}

Semantic roles & 50–950 ramp

primary
#BA50B1
secondary
#9CCAA0
accent
#D35F55
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA50B1

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

Preview Lab → · Contrast checker → · Palette generator →

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