#BA56FC#BA56FC

#BA56FC is a light, highly saturated violet. Relative luminance 0.241; OKLCH L 65.2% C 0.241 H 308.8°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#BA56FC
RGBrgb(186, 86, 252)
HSLhsl(276, 97%, 66%)
HSVhsv(276, 66%, 99%)
CMYKcmyk(26.2%, 65.9%, 0%, 1.2%)
CIE-LABlab(56.21, 66.98, -66.32)
CIE-LCHlch(56.21, 94.25, 315.28°)
OKLaboklab(65.18% 0.151 -0.1876)
OKLCHoklch(65.18% 0.241 308.8)
XYZxyz(41.1446, 24.1237, 94.5654)
Luminance0.2412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56FC #98FC56
analogous
#6756FC #BA56FC #FC56EB
triadic
#BA56FC #FCBA56 #56FCBA
tetradic
#BA56FC #FC6756 #98FC56 #56EBFC
square
#BA56FC #FC6756 #98FC56 #56EBFC
split-complementary
#BA56FC #EBFC56 #56FC67
monochromatic
#8104D4 #A11AFB #BA56FC #D392FD #EBCEFE

Accessibility & contrast

On white

3.61
#BA56FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#BA56FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56FC
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56FC#FFFFFF#000000##000000
##BA56FC1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0083FF
Deuteranopia (green-blind)
#3788F8
Tritanopia (blue-blind)
#B079A2
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #ba56fc;
/* rgb */ color: rgb(186, 86, 252);
/* oklch */ color: oklch(65.2% 0.241 308.8);
Tailwind
colors: {
  custom: {
    50: '#d38cfe',
    500: '#ba56fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba56fc;
$custom-light: #d38cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56fc",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 252
  },
  "hsl": {
    "h": 276.145,
    "s": 96.512,
    "l": 66.275
  },
  "oklch": {
    "l": 0.65184,
    "c": 0.24082,
    "h": 308.8
  },
  "luminance": 0.24123
}

Semantic roles & 50–950 ramp

primary
#BA56FC
secondary
#D1F2BC
accent
#E6005B
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150D18
muted
#837D86

Preview Lab

Preview with #BA56FC

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

Preview Lab → · Contrast checker → · Palette generator →

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