#BA5FEF#BA5FEF

#BA5FEF is a light, highly saturated violet. Relative luminance 0.249; OKLCH L 65.5% C 0.216 H 311.0°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#BA5FEF
RGBrgb(186, 95, 239)
HSLhsl(278, 82%, 65%)
HSVhsv(278, 60%, 94%)
CMYKcmyk(22.2%, 60.3%, 0%, 6.3%)
CIE-LABlab(56.94, 60.07, -57.93)
CIE-LCHlch(56.94, 83.45, 316.04°)
OKLaboklab(65.46% 0.1416 -0.163)
OKLCHoklch(65.46% 0.216 311)
XYZxyz(39.9190, 24.8564, 84.3395)
Luminance0.2486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FEF #94EF5F
analogous
#725FEF #BA5FEF #EF5FDC
triadic
#BA5FEF #EFBA5F #5FEFBA
tetradic
#BA5FEF #EF725F #94EF5F #5FDCEF
square
#BA5FEF #EF725F #94EF5F #5FDCEF
split-complementary
#BA5FEF #DCEF5F #5FEF72
monochromatic
#8113C0 #A227E9 #BA5FEF #D297F5 #EACEFA

Accessibility & contrast

On white

3.52
#BA5FEF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#BA5FEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FEF
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FEF#FFFFFF#000000##000000
##BA5FEF1.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2584F4
Deuteranopia (green-blind)
#518AEC
Tritanopia (blue-blind)
#B37A9E
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5fef;
/* rgb */ color: rgb(186, 95, 239);
/* oklch */ color: oklch(65.5% 0.216 311.0);
Tailwind
colors: {
  custom: {
    50: '#d291f5',
    500: '#ba5fef',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fef;
$custom-light: #d291f5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fef",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 239
  },
  "hsl": {
    "h": 277.917,
    "s": 81.818,
    "l": 65.49
  },
  "oklch": {
    "l": 0.65455,
    "c": 0.21589,
    "h": 311
  },
  "luminance": 0.24856
}

Semantic roles & 50–950 ramp

primary
#BA5FEF
secondary
#CFEDBD
accent
#DE0756
background
#FDF9FF
surface
#FAF1FE
border
#D3CBD6
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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