#BA5FF5#BA5FF5

#BA5FF5 is a light, highly saturated violet. Relative luminance 0.252; OKLCH L 65.8% C 0.222 H 309.6°. Best body text is #000000 at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#BA5FF5
RGBrgb(186, 95, 245)
HSLhsl(276, 88%, 67%)
HSVhsv(276, 61%, 96%)
CMYKcmyk(24.1%, 61.2%, 0%, 3.9%)
CIE-LABlab(57.29, 61.35, -60.70)
CIE-LCHlch(57.29, 86.31, 315.30°)
OKLaboklab(65.82% 0.1414 -0.1711)
OKLCHoklch(65.82% 0.222 309.6)
XYZxyz(40.8201, 25.2168, 89.0855)
Luminance0.2522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FF5 #9AF55F
analogous
#6F5FF5 #BA5FF5 #F55FE5
triadic
#BA5FF5 #F5BA5F #5FF5BA
tetradic
#BA5FF5 #F56F5F #9AF55F #5FE5F5
square
#BA5FF5 #F56F5F #9AF55F #5FE5F5
split-complementary
#BA5FF5 #E5F55F #5FF56F
monochromatic
#810DCD #A125F1 #BA5FF5 #D399F9 #ECD2FC

Accessibility & contrast

On white

3.47
#BA5FF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.04
#BA5FF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FF5
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FF5#FFFFFF#000000##000000
##BA5FF51.003.476.046.04
#FFFFFF3.471.0021.0021.00
#0000006.0421.001.001.00
##0000006.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1686FA
Deuteranopia (green-blind)
#4B8BF2
Tritanopia (blue-blind)
#B27CA2
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ba5ff5;
/* rgb */ color: rgb(186, 95, 245);
/* oklch */ color: oklch(65.8% 0.222 309.6);
Tailwind
colors: {
  custom: {
    50: '#d391f9',
    500: '#ba5ff5',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ff5;
$custom-light: #d391f9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ff5",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 245
  },
  "hsl": {
    "h": 276.4,
    "s": 88.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.65822,
    "c": 0.22203,
    "h": 309.6
  },
  "luminance": 0.25216
}

Semantic roles & 50–950 ramp

primary
#BA5FF5
secondary
#D3F0C0
accent
#E5015A
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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