#BA57F0#BA57F0

#BA57F0 is a light, highly saturated violet. Relative luminance 0.235; OKLCH L 64.5% C 0.228 H 311.4°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#BA57F0
RGBrgb(186, 87, 240)
HSLhsl(279, 84%, 64%)
HSVhsv(279, 64%, 94%)
CMYKcmyk(22.5%, 63.7%, 0%, 5.9%)
CIE-LABlab(55.63, 64.00, -60.57)
CIE-LCHlch(55.63, 88.12, 316.58°)
OKLaboklab(64.53% 0.1507 -0.1707)
OKLCHoklch(64.53% 0.228 311.4)
XYZxyz(39.3832, 23.5477, 84.8917)
Luminance0.2355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57F0 #8DF057
analogous
#6E57F0 #BA57F0 #F057D9
triadic
#BA57F0 #F0BA57 #57F0BA
tetradic
#BA57F0 #F06E57 #8DF057 #57D9F0
square
#BA57F0 #F06E57 #8DF057 #57D9F0
split-complementary
#BA57F0 #D9F057 #57F06E
monochromatic
#7F11BC #A31FEB #BA57F0 #D18FF5 #E8C7FA

Accessibility & contrast

On white

3.68
#BA57F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#BA57F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57F0
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57F0#FFFFFF#000000##000000
##BA57F01.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F5
Deuteranopia (green-blind)
#4787EC
Tritanopia (blue-blind)
#B3759C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba57f0;
/* rgb */ color: rgb(186, 87, 240);
/* oklch */ color: oklch(64.5% 0.228 311.4);
Tailwind
colors: {
  custom: {
    50: '#d38cf6',
    500: '#ba57f0',
    950: '#000000',
  },
}
SCSS
$custom: #ba57f0;
$custom-light: #d38cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57f0",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 240
  },
  "hsl": {
    "h": 278.824,
    "s": 83.607,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64531,
    "c": 0.22775,
    "h": 311.4
  },
  "luminance": 0.23547
}

Semantic roles & 50–950 ramp

primary
#BA57F0
secondary
#CAECB7
accent
#E00553
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150D17
muted
#837D85

Preview Lab

Preview with #BA57F0

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

Preview Lab → · Contrast checker → · Palette generator →

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