#BA51CD#BA51CD

#BA51CD is a mid, highly saturated purple. Relative luminance 0.207; OKLCH L 61.7% C 0.203 H 321.3°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA51CD
RGBrgb(186, 81, 205)
HSLhsl(291, 55%, 56%)
HSVhsv(291, 60%, 80%)
CMYKcmyk(9.3%, 60.5%, 0%, 19.6%)
CIE-LABlab(52.66, 59.73, -45.55)
CIE-LCHlch(52.66, 75.12, 322.68°)
OKLaboklab(61.74% 0.158 -0.1268)
OKLCHoklch(61.74% 0.203 321.3)
XYZxyz(34.2103, 20.7334, 59.9457)
Luminance0.2073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51CD #64CD51
analogous
#7C51CD #BA51CD #CD51A2
triadic
#BA51CD #CDBA51 #51CDBA
tetradic
#BA51CD #CD7C51 #64CD51 #51A2CD
square
#BA51CD #CD7C51 #64CD51 #51A2CD
split-complementary
#BA51CD #A2CD51 #51CD7C
monochromatic
#71257F #9C32AF #BA51CD #CD81DB #E0B0E8

Accessibility & contrast

On white

4.08
#BA51CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#BA51CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51CD
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51CD#FFFFFF#000000##000000
##BA51CD1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#3676D1
Deuteranopia (green-blind)
#5E82CA
Tritanopia (blue-blind)
#BC6488
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba51cd;
/* rgb */ color: rgb(186, 81, 205);
/* oklch */ color: oklch(61.7% 0.203 321.3);
Tailwind
colors: {
  custom: {
    50: '#d288dd',
    500: '#ba51cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba51cd;
$custom-light: #d288dd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51cd",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 290.806,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61736,
    "c": 0.20255,
    "h": 321.3
  },
  "luminance": 0.20732
}

Semantic roles & 50–950 ramp

primary
#BA51CD
secondary
#ABD7A3
accent
#DF4960
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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