#BA5EFE#BA5EFE

#BA5EFE is a light, highly saturated violet. Relative luminance 0.256; OKLCH L 66.3% C 0.233 H 307.7°. Best body text is #000000 at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#BA5EFE
RGBrgb(186, 94, 254)
HSLhsl(275, 99%, 68%)
HSVhsv(275, 63%, 100%)
CMYKcmyk(26.8%, 63%, 0%, 0.4%)
CIE-LABlab(57.66, 63.77, -65.10)
CIE-LCHlch(57.66, 91.13, 314.41°)
OKLaboklab(66.26% 0.1422 -0.184)
OKLCHoklch(66.26% 0.233 307.7)
XYZxyz(42.1381, 25.6008, 96.4683)
Luminance0.2560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5EFE #A2FE5E
analogous
#6A5EFE #BA5EFE #FE5EF2
triadic
#BA5EFE #FEBA5E #5EFEBA
tetradic
#BA5EFE #FE6A5E #A2FE5E #5EF2FE
square
#BA5EFE #FE6A5E #A2FE5E #5EF2FE
split-complementary
#BA5EFE #F2FE5E #5EFE6A
monochromatic
#8201E0 #A021FE #BA5EFE #D49BFE #EED8FF

Accessibility & contrast

On white

3.43
#BA5EFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.12
#BA5EFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5EFE
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5EFE#FFFFFF#000000##000000
##BA5EFE1.003.436.126.12
#FFFFFF3.431.0021.0021.00
#0000006.1221.001.001.00
##0000006.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0087FF
Deuteranopia (green-blind)
#408BFA
Tritanopia (blue-blind)
#AF7FA6
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ba5efe;
/* rgb */ color: rgb(186, 94, 254);
/* oklch */ color: oklch(66.3% 0.233 307.7);
Tailwind
colors: {
  custom: {
    50: '#d391ff',
    500: '#ba5efe',
    950: '#000000',
  },
}
SCSS
$custom: #ba5efe;
$custom-light: #d391ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5efe",
  "rgb": {
    "r": 186,
    "g": 94,
    "b": 254
  },
  "hsl": {
    "h": 274.5,
    "s": 98.765,
    "l": 68.235
  },
  "oklch": {
    "l": 0.66264,
    "c": 0.23258,
    "h": 307.7
  },
  "luminance": 0.256
}

Semantic roles & 50–950 ramp

primary
#BA5EFE
secondary
#D8F4C4
accent
#E60062
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #BA5EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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