#BA55FC#BA55FC

#BA55FC is a light, highly saturated violet. Relative luminance 0.240; OKLCH L 65.1% C 0.242 H 308.9°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#BA55FC
RGBrgb(186, 85, 252)
HSLhsl(276, 97%, 66%)
HSVhsv(276, 66%, 99%)
CMYKcmyk(26.2%, 66.3%, 0%, 1.2%)
CIE-LABlab(56.05, 67.42, -66.57)
CIE-LCHlch(56.05, 94.75, 315.36°)
OKLaboklab(65.07% 0.1521 -0.1883)
OKLCHoklch(65.07% 0.242 308.9)
XYZxyz(41.0654, 23.9651, 94.5390)
Luminance0.2396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA55FC #97FC55
analogous
#6655FC #BA55FC #FC55EB
triadic
#BA55FC #FCBA55 #55FCBA
tetradic
#BA55FC #FC6655 #97FC55 #55EBFC
square
#BA55FC #FC6655 #97FC55 #55EBFC
split-complementary
#BA55FC #EBFC55 #55FC66
monochromatic
#8104D3 #A219FB #BA55FC #D291FD #EBCDFE

Accessibility & contrast

On white

3.63
#BA55FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#BA55FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA55FC
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA55FC#FFFFFF#000000##000000
##BA55FC1.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FF
Deuteranopia (green-blind)
#3688F8
Tritanopia (blue-blind)
#B079A2
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #ba55fc;
/* rgb */ color: rgb(186, 85, 252);
/* oklch */ color: oklch(65.1% 0.242 308.9);
Tailwind
colors: {
  custom: {
    50: '#d38bfe',
    500: '#ba55fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba55fc;
$custom-light: #d38bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba55fc",
  "rgb": {
    "r": 186,
    "g": 85,
    "b": 252
  },
  "hsl": {
    "h": 276.287,
    "s": 96.532,
    "l": 66.078
  },
  "oklch": {
    "l": 0.6507,
    "c": 0.24206,
    "h": 308.9
  },
  "luminance": 0.23964
}

Semantic roles & 50–950 ramp

primary
#BA55FC
secondary
#D1F2BB
accent
#E6005B
background
#FDF8FF
surface
#FBF0FF
border
#D4CBD7
text
#150C18
muted
#837D86

Preview Lab

Preview with #BA55FC

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

Preview Lab → · Contrast checker → · Palette generator →

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