#BA50C8#BA50C8

#BA50C8 is a mid, vivid purple. Relative luminance 0.203; OKLCH L 61.3% C 0.199 H 322.9°. Best body text is #000000 at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#BA50C8
RGBrgb(186, 80, 200)
HSLhsl(293, 52%, 55%)
HSVhsv(293, 60%, 78%)
CMYKcmyk(7%, 60%, 0%, 21.6%)
CIE-LABlab(52.23, 59.25, -43.36)
CIE-LCHlch(52.23, 73.42, 323.80°)
OKLaboklab(61.34% 0.159 -0.1204)
OKLCHoklch(61.34% 0.199 322.9)
XYZxyz(33.5427, 20.3483, 56.7932)
Luminance0.2035 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50C8 #5EC850
analogous
#7E50C8 #BA50C8 #C8509A
triadic
#BA50C8 #C8BA50 #50C8BA
tetradic
#BA50C8 #C87E50 #5EC850 #509AC8
square
#BA50C8 #C87E50 #5EC850 #509AC8
split-complementary
#BA50C8 #9AC850 #50C87E
monochromatic
#6E2678 #9934A6 #BA50C8 #CC7FD7 #DFADE5

Accessibility & contrast

On white

4.14
#BA50C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.07
#BA50C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50C8
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50C8#FFFFFF#000000##000000
##BA50C81.004.145.075.07
#FFFFFF4.141.0021.0021.00
#0000005.0721.001.001.00
##0000005.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3975CC
Deuteranopia (green-blind)
#6081C5
Tritanopia (blue-blind)
#BD6285
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #ba50c8;
/* rgb */ color: rgb(186, 80, 200);
/* oklch */ color: oklch(61.3% 0.199 322.9);
Tailwind
colors: {
  custom: {
    50: '#d287d9',
    500: '#ba50c8',
    950: '#000000',
  },
}
SCSS
$custom: #ba50c8;
$custom-light: #d287d9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50c8",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 200
  },
  "hsl": {
    "h": 293,
    "s": 52.174,
    "l": 54.902
  },
  "oklch": {
    "l": 0.6134,
    "c": 0.19941,
    "h": 322.9
  },
  "luminance": 0.20347
}

Semantic roles & 50–950 ramp

primary
#BA50C8
secondary
#A7D3A1
accent
#DC4C5D
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA50C8

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

Preview Lab → · Contrast checker → · Palette generator →

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