#BA57FF#BA57FF

#BA57FF is a light, highly saturated violet. Relative luminance 0.245; OKLCH L 65.5% C 0.243 H 308.1°. Best body text is #000000 at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#BA57FF
RGBrgb(186, 87, 255)
HSLhsl(275, 100%, 67%)
HSVhsv(275, 66%, 100%)
CMYKcmyk(27.1%, 65.9%, 0%, 0%)
CIE-LABlab(56.56, 67.18, -67.41)
CIE-LCHlch(56.56, 95.17, 314.90°)
OKLaboklab(65.5% 0.1497 -0.1908)
OKLCHoklch(65.5% 0.243 308.1)
XYZxyz(41.7042, 24.4761, 97.1157)
Luminance0.2447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57FF #9CFF57
analogous
#6657FF #BA57FF #FF57F0
triadic
#BA57FF #FFBA57 #57FFBA
tetradic
#BA57FF #FF6657 #9CFF57 #57F0FF
square
#BA57FF #FF6657 #9CFF57 #57F0FF
split-complementary
#BA57FF #F0FF57 #57FF66
monochromatic
#8100DC #A11AFF #BA57FF #D394FF #ECD1FF

Accessibility & contrast

On white

3.56
#BA57FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.90
#BA57FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57FF
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57FF#FFFFFF#000000##000000
##BA57FF1.003.565.905.90
#FFFFFF3.561.0021.0021.00
#0000005.9021.001.001.00
##0000005.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FF
Deuteranopia (green-blind)
#3489FB
Tritanopia (blue-blind)
#AF7BA4
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba57ff;
/* rgb */ color: rgb(186, 87, 255);
/* oklch */ color: oklch(65.5% 0.243 308.1);
Tailwind
colors: {
  custom: {
    50: '#d38dff',
    500: '#ba57ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba57ff;
$custom-light: #d38dff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57ff",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 255
  },
  "hsl": {
    "h": 275.357,
    "s": 100,
    "l": 67.059
  },
  "oklch": {
    "l": 0.65495,
    "c": 0.24253,
    "h": 308.1
  },
  "luminance": 0.24475
}

Semantic roles & 50–950 ramp

primary
#BA57FF
secondary
#D4F4BE
accent
#E6005E
background
#FDF9FF
surface
#FBF1FF
border
#D4CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA57FF

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

Preview Lab → · Contrast checker → · Palette generator →

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