#BA56EE#BA56EE

#BA56EE is a light, highly saturated violet. Relative luminance 0.233; OKLCH L 64.3% C 0.227 H 312.0°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#BA56EE
RGBrgb(186, 86, 238)
HSLhsl(279, 82%, 64%)
HSVhsv(279, 64%, 93%)
CMYKcmyk(21.8%, 63.9%, 0%, 6.7%)
CIE-LABlab(55.35, 64.03, -59.91)
CIE-LCHlch(55.35, 87.69, 316.91°)
OKLaboklab(64.29% 0.152 -0.1688)
OKLCHoklch(64.29% 0.227 312)
XYZxyz(39.0073, 23.2687, 83.3088)
Luminance0.2327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56EE #8AEE56
analogous
#6E56EE #BA56EE #EE56D6
triadic
#BA56EE #EEBA56 #56EEBA
tetradic
#BA56EE #EE6E56 #8AEE56 #56D6EE
square
#BA56EE #EE6E56 #8AEE56 #56D6EE
split-complementary
#BA56EE #D6EE56 #56EE6E
monochromatic
#7F12B7 #A31EE8 #BA56EE #D18EF4 #E7C5F9

Accessibility & contrast

On white

3.71
#BA56EE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#BA56EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56EE
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56EE#FFFFFF#000000##000000
##BA56EE1.003.715.655.65
#FFFFFF3.711.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0080F3
Deuteranopia (green-blind)
#4887EA
Tritanopia (blue-blind)
#B4749B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #ba56ee;
/* rgb */ color: rgb(186, 86, 238);
/* oklch */ color: oklch(64.3% 0.227 312.0);
Tailwind
colors: {
  custom: {
    50: '#d38cf4',
    500: '#ba56ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba56ee;
$custom-light: #d38cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56ee",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 238
  },
  "hsl": {
    "h": 279.474,
    "s": 81.72,
    "l": 63.529
  },
  "oklch": {
    "l": 0.64287,
    "c": 0.22711,
    "h": 312
  },
  "luminance": 0.23268
}

Semantic roles & 50–950 ramp

primary
#BA56EE
secondary
#C7EBB5
accent
#DE0751
background
#FDF8FF
surface
#FAF0FE
border
#D3CBD6
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA56EE

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

Preview Lab → · Contrast checker → · Palette generator →

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