#BA50E2#BA50E2

#BA50E2 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 62.9% C 0.223 H 315.4°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#BA50E2
RGBrgb(186, 80, 226)
HSLhsl(284, 72%, 60%)
HSVhsv(284, 65%, 89%)
CMYKcmyk(17.7%, 64.6%, 0%, 11.4%)
CIE-LABlab(53.67, 64.25, -55.86)
CIE-LCHlch(53.67, 85.13, 319.00°)
OKLaboklab(62.85% 0.1592 -0.1569)
OKLCHoklch(62.85% 0.223 315.4)
XYZxyz(36.8437, 21.6687, 74.1784)
Luminance0.2167 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50E2 #78E250
analogous
#7150E2 #BA50E2 #E250C1
triadic
#BA50E2 #E2BA50 #50E2BA
tetradic
#BA50E2 #E27150 #78E250 #50C1E2
square
#BA50E2 #E27150 #78E250 #50C1E2
split-complementary
#BA50E2 #C1E250 #50E271
monochromatic
#7A1A9E #A223D2 #BA50E2 #CF84EB #E3B9F3

Accessibility & contrast

On white

3.94
#BA50E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#BA50E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50E2
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50E2#FFFFFF#000000##000000
##BA50E21.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0B7AE6
Deuteranopia (green-blind)
#4E83DF
Tritanopia (blue-blind)
#B76B92
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba50e2;
/* rgb */ color: rgb(186, 80, 226);
/* oklch */ color: oklch(62.9% 0.223 315.4);
Tailwind
colors: {
  custom: {
    50: '#d288ec',
    500: '#ba50e2',
    950: '#000000',
  },
}
SCSS
$custom: #ba50e2;
$custom-light: #d288ec;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50e2",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 226
  },
  "hsl": {
    "h": 283.562,
    "s": 71.569,
    "l": 60
  },
  "oklch": {
    "l": 0.62852,
    "c": 0.22347,
    "h": 315.4
  },
  "luminance": 0.21667
}

Semantic roles & 50–950 ramp

primary
#BA50E2
secondary
#BAE3AB
accent
#EE396B
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C16
muted
#837D84

Preview Lab

Preview with #BA50E2

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

Preview Lab → · Contrast checker → · Palette generator →

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