#BA57EE#BA57EE

#BA57EE is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.4% C 0.226 H 311.9°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#BA57EE
RGBrgb(186, 87, 238)
HSLhsl(279, 82%, 64%)
HSVhsv(279, 63%, 93%)
CMYKcmyk(21.8%, 63.4%, 0%, 6.7%)
CIE-LABlab(55.51, 63.58, -59.65)
CIE-LCHlch(55.51, 87.18, 316.83°)
OKLaboklab(64.41% 0.1508 -0.168)
OKLCHoklch(64.41% 0.226 311.9)
XYZxyz(39.0877, 23.4295, 83.3356)
Luminance0.2343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57EE #8BEE57
analogous
#6E57EE #BA57EE #EE57D6
triadic
#BA57EE #EEBA57 #57EEBA
tetradic
#BA57EE #EE6E57 #8BEE57 #57D6EE
square
#BA57EE #EE6E57 #8BEE57 #57D6EE
split-complementary
#BA57EE #D6EE57 #57EE6E
monochromatic
#7F13B8 #A31FE8 #BA57EE #D18FF4 #E8C6F9

Accessibility & contrast

On white

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

On black

5.69
#BA57EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57EE
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57EE#FFFFFF#000000##000000
##BA57EE1.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F3
Deuteranopia (green-blind)
#4987EA
Tritanopia (blue-blind)
#B4759B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba57ee;
/* rgb */ color: rgb(186, 87, 238);
/* oklch */ color: oklch(64.4% 0.226 311.9);
Tailwind
colors: {
  custom: {
    50: '#d38cf4',
    500: '#ba57ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba57ee;
$custom-light: #d38cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57ee",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 238
  },
  "hsl": {
    "h": 279.338,
    "s": 81.622,
    "l": 63.725
  },
  "oklch": {
    "l": 0.64406,
    "c": 0.22579,
    "h": 311.9
  },
  "luminance": 0.23429
}

Semantic roles & 50–950 ramp

primary
#BA57EE
secondary
#C8EBB6
accent
#DE0851
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#150D17
muted
#837D85

Preview Lab

Preview with #BA57EE

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

Preview Lab → · Contrast checker → · Palette generator →

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