#BA56D2#BA56D2

#BA56D2 is a light, highly saturated purple. Relative luminance 0.217; OKLCH L 62.6% C 0.200 H 319.5°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#BA56D2
RGBrgb(186, 86, 210)
HSLhsl(288, 58%, 58%)
HSVhsv(288, 59%, 82%)
CMYKcmyk(11.4%, 59%, 0%, 17.6%)
CIE-LABlab(53.76, 58.40, -46.65)
CIE-LCHlch(53.76, 74.75, 321.38°)
OKLaboklab(62.63% 0.152 -0.13)
OKLCHoklch(62.63% 0.2 319.5)
XYZxyz(35.2089, 21.7493, 63.3037)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA56D2 #6ED256
analogous
#7C56D2 #BA56D2 #D256AC
triadic
#BA56D2 #D2BA56 #56D2BA
tetradic
#BA56D2 #D27C56 #6ED256 #56ACD2
square
#BA56D2 #D27C56 #6ED256 #56ACD2
split-complementary
#BA56D2 #ACD256 #56D27C
monochromatic
#762589 #9F31B9 #BA56D2 #CE86DF #E1B7EC

Accessibility & contrast

On white

3.93
#BA56D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#BA56D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA56D2
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA56D2#FFFFFF#000000##000000
##BA56D21.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#397AD6
Deuteranopia (green-blind)
#5F84CF
Tritanopia (blue-blind)
#BB6A8C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba56d2;
/* rgb */ color: rgb(186, 86, 210);
/* oklch */ color: oklch(62.6% 0.200 319.5);
Tailwind
colors: {
  custom: {
    50: '#d28be0',
    500: '#ba56d2',
    950: '#000000',
  },
}
SCSS
$custom: #ba56d2;
$custom-light: #d28be0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba56d2",
  "rgb": {
    "r": 186,
    "g": 86,
    "b": 210
  },
  "hsl": {
    "h": 288.387,
    "s": 57.944,
    "l": 58.039
  },
  "oklch": {
    "l": 0.62625,
    "c": 0.20005,
    "h": 319.5
  },
  "luminance": 0.21748
}

Semantic roles & 50–950 ramp

primary
#BA56D2
secondary
#B3DBA9
accent
#E14765
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA56D2

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

Preview Lab → · Contrast checker → · Palette generator →

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