#BA56CD#BA56CD

#BA56CD is a light, vivid purple. Relative luminance 0.215; OKLCH L 62.3% C 0.195 H 321.0°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#BA56CD
RGBrgb(186, 86, 205)
HSLhsl(290, 54%, 57%)
HSVhsv(290, 58%, 80%)
CMYKcmyk(9.3%, 58%, 0%, 19.6%)
CIE-LABlab(53.50, 57.44, -44.21)
CIE-LCHlch(53.50, 72.49, 322.41°)
OKLaboklab(62.35% 0.1518 -0.1229)
OKLCHoklch(62.35% 0.195 321)
XYZxyz(34.5957, 21.5041, 60.0742)
Luminance0.2150 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56CD #69CD56
analogous
#7F56CD #BA56CD #CD56A5
triadic
#BA56CD #CDBA56 #56CDBA
tetradic
#BA56CD #CD7F56 #69CD56 #56A5CD
square
#BA56CD #CD7F56 #69CD56 #56A5CD
split-complementary
#BA56CD #A5CD56 #56CD7F
monochromatic
#732682 #9D34B1 #BA56CD #CD85DB #E1B4E9

Accessibility & contrast

On white

3.96
#BA56CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#BA56CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56CD
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56CD#FFFFFF#000000##000000
##BA56CD1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E79D1
Deuteranopia (green-blind)
#6284CA
Tritanopia (blue-blind)
#BC688A
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba56cd;
/* rgb */ color: rgb(186, 86, 205);
/* oklch */ color: oklch(62.3% 0.195 321.0);
Tailwind
colors: {
  custom: {
    50: '#d18bdd',
    500: '#ba56cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba56cd;
$custom-light: #d18bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56cd",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 290.42,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.62348,
    "c": 0.19532,
    "h": 321
  },
  "luminance": 0.21502
}

Semantic roles & 50–950 ramp

primary
#BA56CD
secondary
#AFD8A7
accent
#DE4A62
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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