#BA56F0#BA56F0

#BA56F0 is a light, highly saturated violet. Relative luminance 0.234; OKLCH L 64.4% C 0.229 H 311.5°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#BA56F0
RGBrgb(186, 86, 240)
HSLhsl(279, 84%, 64%)
HSVhsv(279, 64%, 94%)
CMYKcmyk(22.5%, 64.2%, 0%, 5.9%)
CIE-LABlab(55.47, 64.45, -60.84)
CIE-LCHlch(55.47, 88.63, 316.65°)
OKLaboklab(64.41% 0.1519 -0.1715)
OKLCHoklch(64.41% 0.229 311.5)
XYZxyz(39.3028, 23.3869, 84.8649)
Luminance0.2339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56F0 #8CF056
analogous
#6D56F0 #BA56F0 #F056D9
triadic
#BA56F0 #F0BA56 #56F0BA
tetradic
#BA56F0 #F06D56 #8CF056 #56D9F0
square
#BA56F0 #F06D56 #8CF056 #56D9F0
split-complementary
#BA56F0 #D9F056 #56F06D
monochromatic
#7F11BB #A31EEB #BA56F0 #D18EF5 #E8C6FA

Accessibility & contrast

On white

3.70
#BA56F0 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#BA56F0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56F0
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56F0#FFFFFF#000000##000000
##BA56F01.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F5
Deuteranopia (green-blind)
#4687EC
Tritanopia (blue-blind)
#B3759C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba56f0;
/* rgb */ color: rgb(186, 86, 240);
/* oklch */ color: oklch(64.4% 0.229 311.5);
Tailwind
colors: {
  custom: {
    50: '#d38cf6',
    500: '#ba56f0',
    950: '#000000',
  },
}
SCSS
$custom: #ba56f0;
$custom-light: #d38cf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56f0",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 240
  },
  "hsl": {
    "h": 278.961,
    "s": 83.696,
    "l": 63.922
  },
  "oklch": {
    "l": 0.64413,
    "c": 0.22906,
    "h": 311.5
  },
  "luminance": 0.23386
}

Semantic roles & 50–950 ramp

primary
#BA56F0
secondary
#C9ECB6
accent
#E00552
background
#FDF8FF
surface
#FAF0FF
border
#D3CBD7
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA56F0

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

Preview Lab → · Contrast checker → · Palette generator →

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