#BA51F6#BA51F6

#BA51F6 is a light, highly saturated violet. Relative luminance 0.230; OKLCH L 64.2% C 0.241 H 310.5°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#BA51F6
RGBrgb(186, 81, 246)
HSLhsl(278, 90%, 64%)
HSVhsv(278, 67%, 96%)
CMYKcmyk(24.4%, 67.1%, 0%, 3.5%)
CIE-LABlab(55.05, 67.89, -64.85)
CIE-LCHlch(55.05, 93.89, 316.31°)
OKLaboklab(64.23% 0.1568 -0.1833)
OKLCHoklch(64.23% 0.241 310.5)
XYZxyz(39.8235, 22.9787, 89.5084)
Luminance0.2298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51F6 #8DF651
analogous
#6851F6 #BA51F6 #F651DF
triadic
#BA51F6 #F6BA51 #51F6BA
tetradic
#BA51F6 #F66851 #8DF651 #51DFF6
square
#BA51F6 #F66851 #8DF651 #51DFF6
split-complementary
#BA51F6 #DFF651 #51F668
monochromatic
#7F0AC3 #A317F3 #BA51F6 #D18BF9 #E8C5FC

Accessibility & contrast

On white

3.75
#BA51F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#BA51F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51F6
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51F6#FFFFFF#000000##000000
##BA51F61.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FFB
Deuteranopia (green-blind)
#3986F2
Tritanopia (blue-blind)
#B2749D
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba51f6;
/* rgb */ color: rgb(186, 81, 246);
/* oklch */ color: oklch(64.2% 0.241 310.5);
Tailwind
colors: {
  custom: {
    50: '#d389fa',
    500: '#ba51f6',
    950: '#000000',
  },
}
SCSS
$custom: #ba51f6;
$custom-light: #d389fa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51f6",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 246
  },
  "hsl": {
    "h": 278.182,
    "s": 90.164,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64231,
    "c": 0.24118,
    "h": 310.5
  },
  "luminance": 0.22978
}

Semantic roles & 50–950 ramp

primary
#BA51F6
secondary
#CAEEB5
accent
#E60053
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA51F6

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

Preview Lab → · Contrast checker → · Palette generator →

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