#BA93FE#BA93FE

#BA93FE is a light, vivid violet. Relative luminance 0.385; OKLCH L 74.2% C 0.154 H 299.4°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#BA93FE
RGBrgb(186, 147, 254)
HSLhsl(262, 98%, 79%)
HSVhsv(262, 42%, 100%)
CMYKcmyk(26.8%, 42.1%, 0%, 0.4%)
CIE-LABlab(68.36, 36.12, -48.05)
CIE-LCHlch(68.36, 60.12, 306.93°)
OKLaboklab(74.18% 0.0758 -0.1344)
OKLCHoklch(74.18% 0.154 299.4)
XYZxyz(48.5687, 38.4620, 98.6118)
Luminance0.3846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA93FE #D7FE93
analogous
#93A1FE #BA93FE #EF93FE
triadic
#BA93FE #FEBA93 #93FEBA
tetradic
#BA93FE #FE93A1 #D7FE93 #93FEEF
square
#BA93FE #FE93A1 #D7FE93 #93FEEF
split-complementary
#BA93FE #FEEF93 #A1FE93
monochromatic
#6D1AFD #9356FD #BA93FE #E1D0FF #ECE1FF

Accessibility & contrast

On white

2.42
#BA93FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.69
#BA93FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA93FE
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA93FE#FFFFFF#000000##000000
##BA93FE1.002.428.698.69
#FFFFFF2.421.0021.0021.00
#0000008.6921.001.001.00
##0000008.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A7FF
Deuteranopia (green-blind)
#7DA6FB
Tritanopia (blue-blind)
#ADA6BC
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #ba93fe;
/* rgb */ color: rgb(186, 147, 254);
/* oklch */ color: oklch(74.2% 0.154 299.4);
Tailwind
colors: {
  custom: {
    50: '#d1b3ff',
    500: '#ba93fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba93fe;
$custom-light: #d1b3ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba93fe",
  "rgb": {
    "r": 186,
    "g": 147,
    "b": 254
  },
  "hsl": {
    "h": 261.869,
    "s": 98.165,
    "l": 78.627
  },
  "oklch": {
    "l": 0.74177,
    "c": 0.15429,
    "h": 299.4
  },
  "luminance": 0.38462
}

Semantic roles & 50–950 ramp

primary
#BA93FE
secondary
#EAF7D4
accent
#E60092
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA93FE

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

Preview Lab → · Contrast checker → · Palette generator →

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