#BA56F1#BA56F1

#BA56F1 is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.5% C 0.230 H 311.3°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#BA56F1
RGBrgb(186, 86, 241)
HSLhsl(279, 85%, 64%)
HSVhsv(279, 64%, 95%)
CMYKcmyk(22.8%, 64.3%, 0%, 5.5%)
CIE-LABlab(55.53, 64.66, -61.30)
CIE-LCHlch(55.53, 89.10, 316.53°)
OKLaboklab(64.48% 0.1518 -0.1728)
OKLCHoklch(64.48% 0.23 311.3)
XYZxyz(39.4517, 23.4465, 85.6494)
Luminance0.2345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56F1 #8DF156
analogous
#6D56F1 #BA56F1 #F156DA
triadic
#BA56F1 #F1BA56 #56F1BA
tetradic
#BA56F1 #F16D56 #8DF156 #56DAF1
square
#BA56F1 #F16D56 #8DF156 #56DAF1
split-complementary
#BA56F1 #DAF156 #56F16D
monochromatic
#7F10BD #A31DEC #BA56F1 #D18FF6 #E8C7FA

Accessibility & contrast

On white

3.69
#BA56F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#BA56F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56F1
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56F1#FFFFFF#000000##000000
##BA56F11.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F6
Deuteranopia (green-blind)
#4587ED
Tritanopia (blue-blind)
#B3759C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba56f1;
/* rgb */ color: rgb(186, 86, 241);
/* oklch */ color: oklch(64.5% 0.230 311.3);
Tailwind
colors: {
  custom: {
    50: '#d38cf6',
    500: '#ba56f1',
    950: '#000000',
  },
}
SCSS
$custom: #ba56f1;
$custom-light: #d38cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56f1",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 241
  },
  "hsl": {
    "h": 278.71,
    "s": 84.699,
    "l": 64.118
  },
  "oklch": {
    "l": 0.64476,
    "c": 0.23004,
    "h": 311.3
  },
  "luminance": 0.23446
}

Semantic roles & 50–950 ramp

primary
#BA56F1
secondary
#CAECB6
accent
#E10453
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA56F1

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

Preview Lab → · Contrast checker → · Palette generator →

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