#BA50F2#BA50F2

#BA50F2 is a light, highly saturated violet. Relative luminance 0.226; OKLCH L 63.9% C 0.239 H 311.5°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#BA50F2
RGBrgb(186, 80, 242)
HSLhsl(279, 86%, 63%)
HSVhsv(279, 67%, 95%)
CMYKcmyk(23.1%, 66.9%, 0%, 5.1%)
CIE-LABlab(54.65, 67.49, -63.28)
CIE-LCHlch(54.65, 92.51, 316.85°)
OKLaboklab(63.86% 0.1582 -0.1786)
OKLCHoklch(63.86% 0.239 311.5)
XYZxyz(39.1424, 22.5882, 86.2852)
Luminance0.2259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50F2 #88F250
analogous
#6950F2 #BA50F2 #F250D9
triadic
#BA50F2 #F2BA50 #50F2BA
tetradic
#BA50F2 #F26950 #88F250 #50D9F2
square
#BA50F2 #F26950 #88F250 #50D9F2
split-complementary
#BA50F2 #D9F250 #50F269
monochromatic
#7E0EBA #A417EE #BA50F2 #D089F6 #E7C2FA

Accessibility & contrast

On white

3.81
#BA50F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#BA50F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50F2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50F2#FFFFFF#000000##000000
##BA50F21.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007EF7
Deuteranopia (green-blind)
#3D85EE
Tritanopia (blue-blind)
#B3729B
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #ba50f2;
/* rgb */ color: rgb(186, 80, 242);
/* oklch */ color: oklch(63.9% 0.239 311.5);
Tailwind
colors: {
  custom: {
    50: '#d388f7',
    500: '#ba50f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba50f2;
$custom-light: #d388f7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50f2",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 242
  },
  "hsl": {
    "h": 279.259,
    "s": 86.17,
    "l": 63.137
  },
  "oklch": {
    "l": 0.63861,
    "c": 0.2386,
    "h": 311.5
  },
  "luminance": 0.22587
}

Semantic roles & 50–950 ramp

primary
#BA50F2
secondary
#C6ECB2
accent
#E30350
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA50F2

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

Preview Lab → · Contrast checker → · Palette generator →

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