#BA50FB#BA50FB

#BA50FB is a light, highly saturated violet. Relative luminance 0.231; OKLCH L 64.5% C 0.247 H 309.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#BA50FB
RGBrgb(186, 80, 251)
HSLhsl(277, 96%, 65%)
HSVhsv(277, 68%, 98%)
CMYKcmyk(25.9%, 68.1%, 0%, 1.6%)
CIE-LABlab(55.22, 69.36, -67.36)
CIE-LCHlch(55.22, 96.69, 315.84°)
OKLaboklab(64.45% 0.1573 -0.1906)
OKLCHoklch(64.45% 0.247 309.5)
XYZxyz(40.5275, 23.1422, 93.5800)
Luminance0.2314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50FB #91FB50
analogous
#6550FB #BA50FB #FB50E7
triadic
#BA50FB #FBBA50 #50FBBA
tetradic
#BA50FB #FB6550 #91FB50 #50E7FB
square
#BA50FB #FB6550 #91FB50 #50E7FB
split-complementary
#BA50FB #E7FB50 #50FB65
monochromatic
#8005CC #A214FA #BA50FB #D28CFC #E9C8FE

Accessibility & contrast

On white

3.73
#BA50FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#BA50FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50FB
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50FB#FFFFFF#000000##000000
##BA50FB1.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080FF
Deuteranopia (green-blind)
#3086F7
Tritanopia (blue-blind)
#B175A0
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba50fb;
/* rgb */ color: rgb(186, 80, 251);
/* oklch */ color: oklch(64.5% 0.247 309.5);
Tailwind
colors: {
  custom: {
    50: '#d489fe',
    500: '#ba50fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba50fb;
$custom-light: #d489fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50fb",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 251
  },
  "hsl": {
    "h": 277.193,
    "s": 95.531,
    "l": 64.902
  },
  "oklch": {
    "l": 0.64453,
    "c": 0.24715,
    "h": 309.5
  },
  "luminance": 0.23141
}

Semantic roles & 50–950 ramp

primary
#BA50FB
secondary
#CCF1B6
accent
#E60057
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C18
muted
#837D86

Preview Lab

Preview with #BA50FB

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

Preview Lab → · Contrast checker → · Palette generator →

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