#BA57F1#BA57F1

#BA57F1 is a light, highly saturated violet. Relative luminance 0.236; OKLCH L 64.6% C 0.229 H 311.2°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#BA57F1
RGBrgb(186, 87, 241)
HSLhsl(279, 85%, 64%)
HSVhsv(279, 64%, 95%)
CMYKcmyk(22.8%, 63.9%, 0%, 5.5%)
CIE-LABlab(55.69, 64.21, -61.03)
CIE-LCHlch(55.69, 88.59, 316.45°)
OKLaboklab(64.59% 0.1507 -0.1721)
OKLCHoklch(64.59% 0.229 311.2)
XYZxyz(39.5321, 23.6073, 85.6762)
Luminance0.2361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57F1 #8EF157
analogous
#6D57F1 #BA57F1 #F157DB
triadic
#BA57F1 #F1BA57 #57F1BA
tetradic
#BA57F1 #F16D57 #8EF157 #57DBF1
square
#BA57F1 #F16D57 #8EF157 #57DBF1
split-complementary
#BA57F1 #DBF157 #57F16D
monochromatic
#8010BE #A31FEC #BA57F1 #D18FF6 #E8C8FA

Accessibility & contrast

On white

3.67
#BA57F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#BA57F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57F1
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57F1#FFFFFF#000000##000000
##BA57F11.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F6
Deuteranopia (green-blind)
#4687ED
Tritanopia (blue-blind)
#B3769D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba57f1;
/* rgb */ color: rgb(186, 87, 241);
/* oklch */ color: oklch(64.6% 0.229 311.2);
Tailwind
colors: {
  custom: {
    50: '#d38cf6',
    500: '#ba57f1',
    950: '#000000',
  },
}
SCSS
$custom: #ba57f1;
$custom-light: #d38cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57f1",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 241
  },
  "hsl": {
    "h": 278.571,
    "s": 84.615,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64593,
    "c": 0.22873,
    "h": 311.2
  },
  "luminance": 0.23606
}

Semantic roles & 50–950 ramp

primary
#BA57F1
secondary
#CAEDB7
accent
#E10453
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150D17
muted
#837D85

Preview Lab

Preview with #BA57F1

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

Preview Lab → · Contrast checker → · Palette generator →

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