#BA5FEE#BA5FEE

#BA5FEE is a light, highly saturated violet. Relative luminance 0.248; OKLCH L 65.4% C 0.215 H 311.2°. Best body text is #000000 at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#BA5FEE
RGBrgb(186, 95, 238)
HSLhsl(278, 81%, 65%)
HSVhsv(278, 60%, 93%)
CMYKcmyk(21.8%, 60.1%, 0%, 6.7%)
CIE-LABlab(56.88, 59.85, -57.46)
CIE-LCHlch(56.88, 82.97, 316.17°)
OKLaboklab(65.39% 0.1416 -0.1616)
OKLCHoklch(65.39% 0.215 311.2)
XYZxyz(39.7717, 24.7975, 83.5636)
Luminance0.2480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FEE #93EE5F
analogous
#725FEE #BA5FEE #EE5FDA
triadic
#BA5FEE #EEBA5F #5FEEBA
tetradic
#BA5FEE #EE725F #93EE5F #5FDAEE
square
#BA5FEE #EE725F #93EE5F #5FDAEE
split-complementary
#BA5FEE #DAEE5F #5FEE72
monochromatic
#8114BE #A228E8 #BA5FEE #D296F4 #EACEFA

Accessibility & contrast

On white

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

On black

5.96
#BA5FEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FEE
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FEE#FFFFFF#000000##000000
##BA5FEE1.003.525.965.96
#FFFFFF3.521.0021.0021.00
#0000005.9621.001.001.00
##0000005.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2784F2
Deuteranopia (green-blind)
#528AEB
Tritanopia (blue-blind)
#B47A9E
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #ba5fee;
/* rgb */ color: rgb(186, 95, 238);
/* oklch */ color: oklch(65.4% 0.215 311.2);
Tailwind
colors: {
  custom: {
    50: '#d291f4',
    500: '#ba5fee',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fee;
$custom-light: #d291f4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fee",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 238
  },
  "hsl": {
    "h": 278.182,
    "s": 80.791,
    "l": 65.294
  },
  "oklch": {
    "l": 0.65394,
    "c": 0.21487,
    "h": 311.2
  },
  "luminance": 0.24797
}

Semantic roles & 50–950 ramp

primary
#BA5FEE
secondary
#CEECBC
accent
#DD0856
background
#FDF9FF
surface
#FAF1FE
border
#D3CBD6
text
#140D17
muted
#837E85

Preview Lab

Preview with #BA5FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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