#BA5FF8#BA5FF8

#BA5FF8 is a light, highly saturated violet. Relative luminance 0.254; OKLCH L 66.0% C 0.225 H 308.9°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#BA5FF8
RGBrgb(186, 95, 248)
HSLhsl(276, 92%, 67%)
HSVhsv(276, 62%, 97%)
CMYKcmyk(25%, 61.7%, 0%, 2.7%)
CIE-LABlab(57.46, 62.00, -62.08)
CIE-LCHlch(57.46, 87.74, 314.96°)
OKLaboklab(66.01% 0.1413 -0.1752)
OKLCHoklch(66.01% 0.225 308.9)
XYZxyz(41.2818, 25.4015, 91.5170)
Luminance0.2540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FF8 #9DF85F
analogous
#6D5FF8 #BA5FF8 #F85FEA
triadic
#BA5FF8 #F8BA5F #5FF8BA
tetradic
#BA5FF8 #F86D5F #9DF85F #5FEAF8
square
#BA5FF8 #F86D5F #9DF85F #5FEAF8
split-complementary
#BA5FF8 #EAF85F #5FF86D
monochromatic
#8109D3 #A124F5 #BA5FF8 #D39AFB #EDD4FD

Accessibility & contrast

On white

3.45
#BA5FF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#BA5FF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FF8
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FF8#FFFFFF#000000##000000
##BA5FF81.003.456.086.08
#FFFFFF3.451.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0A86FD
Deuteranopia (green-blind)
#488BF4
Tritanopia (blue-blind)
#B17DA3
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #ba5ff8;
/* rgb */ color: rgb(186, 95, 248);
/* oklch */ color: oklch(66.0% 0.225 308.9);
Tailwind
colors: {
  custom: {
    50: '#d391fb',
    500: '#ba5ff8',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ff8;
$custom-light: #d391fb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ff8",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 248
  },
  "hsl": {
    "h": 275.686,
    "s": 91.617,
    "l": 67.255
  },
  "oklch": {
    "l": 0.66009,
    "c": 0.2251,
    "h": 308.9
  },
  "luminance": 0.25401
}

Semantic roles & 50–950 ramp

primary
#BA5FF8
secondary
#D5F2C1
accent
#E6005D
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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