#BA4DC7#BA4DC7

#BA4DC7 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 60.9% C 0.203 H 323.3°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA4DC7
RGBrgb(186, 77, 199)
HSLhsl(294, 52%, 54%)
HSVhsv(294, 61%, 78%)
CMYKcmyk(6.5%, 61.3%, 0%, 22%)
CIE-LABlab(51.69, 60.39, -43.63)
CIE-LCHlch(51.69, 74.51, 324.15°)
OKLaboklab(60.93% 0.1625 -0.1212)
OKLCHoklch(60.93% 0.203 323.3)
XYZxyz(33.2114, 19.8722, 56.1081)
Luminance0.1987 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4DC7 #5AC74D
analogous
#7D4DC7 #BA4DC7 #C74D97
triadic
#BA4DC7 #C7BA4D #4DC7BA
tetradic
#BA4DC7 #C77D4D #5AC74D #4D97C7
square
#BA4DC7 #C77D4D #5AC74D #4D97C7
split-complementary
#BA4DC7 #97C74D #4DC77D
monochromatic
#6C2575 #9733A3 #BA4DC7 #CC7CD6 #DEAAE4

Accessibility & contrast

On white

4.22
#BA4DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#BA4DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4DC7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4DC7#FFFFFF#000000##000000
##BA4DC71.004.224.974.97
#FFFFFF4.221.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3573CB
Deuteranopia (green-blind)
#5F80C4
Tritanopia (blue-blind)
#BD5F83
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #ba4dc7;
/* rgb */ color: rgb(186, 77, 199);
/* oklch */ color: oklch(60.9% 0.203 323.3);
Tailwind
colors: {
  custom: {
    50: '#d286d8',
    500: '#ba4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #ba4dc7;
$custom-light: #d286d8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4dc7",
  "rgb": {
    "r": 186,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 293.607,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.60933,
    "c": 0.20274,
    "h": 323.3
  },
  "luminance": 0.1987
}

Semantic roles & 50–950 ramp

primary
#BA4DC7
secondary
#A3D29E
accent
#DC4C5B
background
#FDF8FD
surface
#FAF0FA
border
#D3CBD3
text
#140C14
muted
#837D83

Preview Lab

Preview with #BA4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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