#BA50B2#BA50B2

#BA50B2 is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.2% C 0.180 H 330.5°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA50B2
RGBrgb(186, 80, 178)
HSLhsl(305, 43%, 52%)
HSVhsv(305, 57%, 73%)
CMYKcmyk(0%, 57%, 4.3%, 27.1%)
CIE-LABlab(51.14, 55.33, -32.34)
CIE-LCHlch(51.14, 64.09, 329.70°)
OKLaboklab(60.19% 0.1569 -0.0886)
OKLCHoklch(60.19% 0.18 330.5)
XYZxyz(31.1540, 19.3929, 44.2131)
Luminance0.1939 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50B2 #50BA58
analogous
#8D50BA #BA50B2 #BA507D
triadic
#BA50B2 #B2BA50 #50B2BA
tetradic
#BA50B2 #BA8D50 #50BA58 #507DBA
square
#BA50B2 #BA8D50 #50BA58 #507DBA
split-complementary
#BA50B2 #7DBA50 #50BA8D
monochromatic
#672962 #933A8C #BA50B2 #CB7CC5 #DDA8D9

Accessibility & contrast

On white

4.30
#BA50B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#BA50B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50B2
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50B2#FFFFFF#000000##000000
##BA50B21.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A70B5
Deuteranopia (green-blind)
#6B7FAF
Tritanopia (blue-blind)
#C15A7A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba50b2;
/* rgb */ color: rgb(186, 80, 178);
/* oklch */ color: oklch(60.2% 0.180 330.5);
Tailwind
colors: {
  custom: {
    50: '#d187c9',
    500: '#ba50b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba50b2;
$custom-light: #d187c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50b2",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 178
  },
  "hsl": {
    "h": 304.528,
    "s": 43.443,
    "l": 52.157
  },
  "oklch": {
    "l": 0.60194,
    "c": 0.18017,
    "h": 330.5
  },
  "luminance": 0.19391
}

Semantic roles & 50–950 ramp

primary
#BA50B2
secondary
#9CCA9F
accent
#D35E55
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C13
muted
#837D82

Preview Lab

Preview with #BA50B2

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

Preview Lab → · Contrast checker → · Palette generator →

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