#BA5FEC#BA5FEC

#BA5FEC is a light, highly saturated violet. Relative luminance 0.247; OKLCH L 65.3% C 0.213 H 311.7°. Best body text is #000000 at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#BA5FEC
RGBrgb(186, 95, 236)
HSLhsl(279, 79%, 65%)
HSVhsv(279, 60%, 93%)
CMYKcmyk(21.2%, 59.7%, 0%, 7.5%)
CIE-LABlab(56.76, 59.43, -56.53)
CIE-LCHlch(56.76, 82.02, 316.43°)
OKLaboklab(65.27% 0.1416 -0.1589)
OKLCHoklch(65.27% 0.213 311.7)
XYZxyz(39.4795, 24.6806, 82.0247)
Luminance0.2468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FEC #91EC5F
analogous
#735FEC #BA5FEC #EC5FD8
triadic
#BA5FEC #ECBA5F #5FECBA
tetradic
#BA5FEC #EC735F #91EC5F #5FD8EC
square
#BA5FEC #EC735F #91EC5F #5FD8EC
split-complementary
#BA5FEC #D8EC5F #5FEC73
monochromatic
#8016BA #A228E6 #BA5FEC #D296F2 #E9CCF9

Accessibility & contrast

On white

3.54
#BA5FEC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.94
#BA5FEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FEC
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FEC#FFFFFF#000000##000000
##BA5FEC1.003.545.945.94
#FFFFFF3.541.0021.0021.00
#0000005.9421.001.001.00
##0000005.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2A84F0
Deuteranopia (green-blind)
#548AE9
Tritanopia (blue-blind)
#B4799D
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5fec;
/* rgb */ color: rgb(186, 95, 236);
/* oklch */ color: oklch(65.3% 0.213 311.7);
Tailwind
colors: {
  custom: {
    50: '#d291f3',
    500: '#ba5fec',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fec;
$custom-light: #d291f3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fec",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 236
  },
  "hsl": {
    "h": 278.723,
    "s": 78.771,
    "l": 64.902
  },
  "oklch": {
    "l": 0.65274,
    "c": 0.21283,
    "h": 311.7
  },
  "luminance": 0.2468
}

Semantic roles & 50–950 ramp

primary
#BA5FEC
secondary
#CCEBBB
accent
#DB0A54
background
#FDF9FE
surface
#FAF1FD
border
#D3CBD5
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5FEC

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

Preview Lab → · Contrast checker → · Palette generator →

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