#BA57F2#BA57F2

#BA57F2 is a light, highly saturated violet. Relative luminance 0.237; OKLCH L 64.7% C 0.230 H 311.0°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#BA57F2
RGBrgb(186, 87, 242)
HSLhsl(278, 86%, 65%)
HSVhsv(278, 64%, 95%)
CMYKcmyk(23.1%, 64%, 0%, 5.1%)
CIE-LABlab(55.75, 64.42, -61.49)
CIE-LCHlch(55.75, 89.06, 316.33°)
OKLaboklab(64.66% 0.1506 -0.1734)
OKLCHoklch(64.66% 0.23 311)
XYZxyz(39.6819, 23.6672, 86.4650)
Luminance0.2367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA57F2 #8FF257
analogous
#6D57F2 #BA57F2 #F257DC
triadic
#BA57F2 #F2BA57 #57F2BA
tetradic
#BA57F2 #F26D57 #8FF257 #57DCF2
square
#BA57F2 #F26D57 #8FF257 #57DCF2
split-complementary
#BA57F2 #DCF257 #57F26D
monochromatic
#800FC0 #A31EEE #BA57F2 #D190F6 #E9C9FB

Accessibility & contrast

On white

3.66
#BA57F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#BA57F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA57F2
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA57F2#FFFFFF#000000##000000
##BA57F21.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F7
Deuteranopia (green-blind)
#4587EE
Tritanopia (blue-blind)
#B3769D
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba57f2;
/* rgb */ color: rgb(186, 87, 242);
/* oklch */ color: oklch(64.7% 0.230 311.0);
Tailwind
colors: {
  custom: {
    50: '#d38cf7',
    500: '#ba57f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba57f2;
$custom-light: #d38cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba57f2",
  "rgb": {
    "r": 186,
    "g": 87,
    "b": 242
  },
  "hsl": {
    "h": 278.323,
    "s": 85.635,
    "l": 64.51
  },
  "oklch": {
    "l": 0.64656,
    "c": 0.22972,
    "h": 311
  },
  "luminance": 0.23666
}

Semantic roles & 50–950 ramp

primary
#BA57F2
secondary
#CBEDB8
accent
#E20354
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150D17
muted
#837D85

Preview Lab

Preview with #BA57F2

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

Preview Lab → · Contrast checker → · Palette generator →

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