#BA5FF4#BA5FF4

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

Color values

HEX#BA5FF4
RGBrgb(186, 95, 244)
HSLhsl(277, 87%, 66%)
HSVhsv(277, 61%, 96%)
CMYKcmyk(23.8%, 61.1%, 0%, 4.3%)
CIE-LABlab(57.23, 61.13, -60.24)
CIE-LCHlch(57.23, 85.83, 315.42°)
OKLaboklab(65.76% 0.1415 -0.1698)
OKLCHoklch(65.76% 0.221 309.8)
XYZxyz(40.6679, 25.1559, 88.2836)
Luminance0.2515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FF4 #99F45F
analogous
#705FF4 #BA5FF4 #F45FE4
triadic
#BA5FF4 #F4BA5F #5FF4BA
tetradic
#BA5FF4 #F4705F #99F45F #5FE4F4
square
#BA5FF4 #F4705F #99F45F #5FE4F4
split-complementary
#BA5FF4 #E4F45F #5FF470
monochromatic
#810ECB #A126F0 #BA5FF4 #D398F8 #EBD2FC

Accessibility & contrast

On white

3.48
#BA5FF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.03
#BA5FF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FF4
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FF4#FFFFFF#000000##000000
##BA5FF41.003.486.036.03
#FFFFFF3.481.0021.0021.00
#0000006.0321.001.001.00
##0000006.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1985F9
Deuteranopia (green-blind)
#4C8BF1
Tritanopia (blue-blind)
#B27CA1
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #ba5ff4;
/* rgb */ color: rgb(186, 95, 244);
/* oklch */ color: oklch(65.8% 0.221 309.8);
Tailwind
colors: {
  custom: {
    50: '#d391f8',
    500: '#ba5ff4',
    950: '#000000',
  },
}
SCSS
$custom: #ba5ff4;
$custom-light: #d391f8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5ff4",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 244
  },
  "hsl": {
    "h": 276.644,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.6576,
    "c": 0.221,
    "h": 309.8
  },
  "luminance": 0.25155
}

Semantic roles & 50–950 ramp

primary
#BA5FF4
secondary
#D2F0BF
accent
#E4025A
background
#FDF9FF
surface
#FAF1FF
border
#D3CBD7
text
#150D17
muted
#837E85

Preview Lab

Preview with #BA5FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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