#BA50D6#BA50D6

#BA50D6 is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.1% C 0.212 H 318.7°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA50D6
RGBrgb(186, 80, 214)
HSLhsl(287, 62%, 58%)
HSVhsv(287, 63%, 84%)
CMYKcmyk(13.1%, 62.6%, 0%, 16.1%)
CIE-LABlab(52.99, 61.90, -50.16)
CIE-LCHlch(52.99, 79.67, 320.98°)
OKLaboklab(62.13% 0.1594 -0.1402)
OKLCHoklch(62.13% 0.212 318.7)
XYZxyz(35.2543, 21.0330, 65.8080)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50D6 #6CD650
analogous
#7750D6 #BA50D6 #D650AF
triadic
#BA50D6 #D6BA50 #50D6BA
tetradic
#BA50D6 #D67750 #6CD650 #50AFD6
square
#BA50D6 #D67750 #6CD650 #50AFD6
split-complementary
#BA50D6 #AFD650 #50D677
monochromatic
#75218B #9E2CBD #BA50D6 #CE82E2 #E1B3ED

Accessibility & contrast

On white

4.03
#BA50D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#BA50D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50D6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50D6#FFFFFF#000000##000000
##BA50D61.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2877DA
Deuteranopia (green-blind)
#5782D3
Tritanopia (blue-blind)
#BA678C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba50d6;
/* rgb */ color: rgb(186, 80, 214);
/* oklch */ color: oklch(62.1% 0.212 318.7);
Tailwind
colors: {
  custom: {
    50: '#d288e3',
    500: '#ba50d6',
    950: '#000000',
  },
}
SCSS
$custom: #ba50d6;
$custom-light: #d288e3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50d6",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 214
  },
  "hsl": {
    "h": 287.463,
    "s": 62.037,
    "l": 57.647
  },
  "oklch": {
    "l": 0.62134,
    "c": 0.21225,
    "h": 318.7
  },
  "luminance": 0.21031
}

Semantic roles & 50–950 ramp

primary
#BA50D6
secondary
#B1DCA6
accent
#E54365
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C15
muted
#837D84

Preview Lab

Preview with #BA50D6

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

Preview Lab → · Contrast checker → · Palette generator →

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