#BA51CF#BA51CF

#BA51CF is a mid, highly saturated purple. Relative luminance 0.208; OKLCH L 61.8% C 0.204 H 320.6°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#BA51CF
RGBrgb(186, 81, 207)
HSLhsl(290, 57%, 56%)
HSVhsv(290, 61%, 81%)
CMYKcmyk(10.1%, 60.9%, 0%, 18.8%)
CIE-LABlab(52.76, 60.11, -46.52)
CIE-LCHlch(52.76, 76.01, 322.26°)
OKLaboklab(61.85% 0.158 -0.1296)
OKLCHoklch(61.85% 0.204 320.6)
XYZxyz(34.4533, 20.8306, 61.2253)
Luminance0.2083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA51CF #66CF51
analogous
#7B51CF #BA51CF #CF51A5
triadic
#BA51CF #CFBA51 #51CFBA
tetradic
#BA51CF #CF7B51 #66CF51 #51A5CF
square
#BA51CF #CF7B51 #66CF51 #51A5CF
split-complementary
#BA51CF #A5CF51 #51CF7B
monochromatic
#722482 #9C31B2 #BA51CF #CD81DC #E0B1E9

Accessibility & contrast

On white

4.07
#BA51CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#BA51CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA51CF
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA51CF#FFFFFF#000000##000000
##BA51CF1.004.075.175.17
#FFFFFF4.071.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3377D3
Deuteranopia (green-blind)
#5D82CC
Tritanopia (blue-blind)
#BB6589
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba51cf;
/* rgb */ color: rgb(186, 81, 207);
/* oklch */ color: oklch(61.8% 0.204 320.6);
Tailwind
colors: {
  custom: {
    50: '#d288de',
    500: '#ba51cf',
    950: '#000000',
  },
}
SCSS
$custom: #ba51cf;
$custom-light: #d288de;
$custom-dark: #000000;
JSON
{
  "hex": "#ba51cf",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 290,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.61849,
    "c": 0.20439,
    "h": 320.6
  },
  "luminance": 0.20829
}

Semantic roles & 50–950 ramp

primary
#BA51CF
secondary
#ADD8A4
accent
#E04861
background
#FDF8FD
surface
#FAF0FB
border
#D3CBD4
text
#140C15
muted
#837D83

Preview Lab

Preview with #BA51CF

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

Preview Lab → · Contrast checker → · Palette generator →

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