#BA56ED#BA56ED

#BA56ED is a light, highly saturated violet. Relative luminance 0.232; OKLCH L 64.2% C 0.226 H 312.2°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#BA56ED
RGBrgb(186, 86, 237)
HSLhsl(280, 81%, 63%)
HSVhsv(280, 64%, 93%)
CMYKcmyk(21.5%, 63.7%, 0%, 7.1%)
CIE-LABlab(55.29, 63.83, -59.45)
CIE-LCHlch(55.29, 87.22, 317.03°)
OKLaboklab(64.22% 0.152 -0.1674)
OKLCHoklch(64.22% 0.226 312.2)
XYZxyz(38.8608, 23.2101, 82.5372)
Luminance0.2321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56ED #89ED56
analogous
#6E56ED #BA56ED #ED56D5
triadic
#BA56ED #EDBA56 #56EDBA
tetradic
#BA56ED #ED6E56 #89ED56 #56D5ED
square
#BA56ED #ED6E56 #89ED56 #56D5ED
split-complementary
#BA56ED #D5ED56 #56ED6E
monochromatic
#7F13B5 #A31FE7 #BA56ED #D18DF3 #E7C5F9

Accessibility & contrast

On white

3.72
#BA56ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#BA56ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56ED
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56ED#FFFFFF#000000##000000
##BA56ED1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007FF2
Deuteranopia (green-blind)
#4986E9
Tritanopia (blue-blind)
#B4749A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #ba56ed;
/* rgb */ color: rgb(186, 86, 237);
/* oklch */ color: oklch(64.2% 0.226 312.2);
Tailwind
colors: {
  custom: {
    50: '#d38cf4',
    500: '#ba56ed',
    950: '#000000',
  },
}
SCSS
$custom: #ba56ed;
$custom-light: #d38cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56ed",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 237
  },
  "hsl": {
    "h": 279.735,
    "s": 80.749,
    "l": 63.333
  },
  "oklch": {
    "l": 0.64225,
    "c": 0.22613,
    "h": 312.2
  },
  "luminance": 0.23209
}

Semantic roles & 50–950 ramp

primary
#BA56ED
secondary
#C7EAB4
accent
#DD0850
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#150C17
muted
#837D85

Preview Lab

Preview with #BA56ED

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

Preview Lab → · Contrast checker → · Palette generator →

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