#BA57EF#BA57EF

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

Color values

HEX#BA57EF
RGBrgb(186, 87, 239)
HSLhsl(279, 83%, 64%)
HSVhsv(279, 64%, 94%)
CMYKcmyk(22.2%, 63.6%, 0%, 6.3%)
CIE-LABlab(55.57, 63.79, -60.11)
CIE-LCHlch(55.57, 87.65, 316.70°)
OKLaboklab(64.47% 0.1508 -0.1694)
OKLCHoklch(64.47% 0.227 311.7)
XYZxyz(39.2350, 23.4885, 84.1115)
Luminance0.2349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57EF #8CEF57
analogous
#6E57EF #BA57EF #EF57D8
triadic
#BA57EF #EFBA57 #57EFBA
tetradic
#BA57EF #EF6E57 #8CEF57 #57D8EF
square
#BA57EF #EF6E57 #8CEF57 #57D8EF
split-complementary
#BA57EF #D8EF57 #57EF6E
monochromatic
#7F12BA #A31FEA #BA57EF #D18FF4 #E8C7FA

Accessibility & contrast

On white

3.69
#BA57EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#BA57EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57EF
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57EF#FFFFFF#000000##000000
##BA57EF1.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F4
Deuteranopia (green-blind)
#4887EB
Tritanopia (blue-blind)
#B4759C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba57ef;
/* rgb */ color: rgb(186, 87, 239);
/* oklch */ color: oklch(64.5% 0.227 311.7);
Tailwind
colors: {
  custom: {
    50: '#d38cf5',
    500: '#ba57ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba57ef;
$custom-light: #d38cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57ef",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 239
  },
  "hsl": {
    "h": 279.079,
    "s": 82.609,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64468,
    "c": 0.22678,
    "h": 311.7
  },
  "luminance": 0.23487
}

Semantic roles & 50–950 ramp

primary
#BA57EF
secondary
#C9ECB6
accent
#DF0652
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#150D17
muted
#837D85

Preview Lab

Preview with #BA57EF

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

Preview Lab → · Contrast checker → · Palette generator →

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