#BA4DBC#BA4DBC

#BA4DBC is a mid, vivid purple. Relative luminance 0.194; OKLCH L 60.3% C 0.193 H 326.9°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#BA4DBC
RGBrgb(186, 77, 188)
HSLhsl(299, 45%, 52%)
HSVhsv(299, 59%, 74%)
CMYKcmyk(1.1%, 59%, 0%, 26.3%)
CIE-LABlab(51.13, 58.42, -38.17)
CIE-LCHlch(51.13, 69.78, 326.84°)
OKLaboklab(60.34% 0.1618 -0.1054)
OKLCHoklch(60.34% 0.193 326.9)
XYZxyz(31.9801, 19.3797, 49.6234)
Luminance0.1938 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4DBC #4FBC4D
analogous
#834DBC #BA4DBC #BC4D87
triadic
#BA4DBC #BCBA4D #4DBCBA
tetradic
#BA4DBC #BC834D #4FBC4D #4D87BC
square
#BA4DBC #BC834D #4FBC4D #4D87BC
split-complementary
#BA4DBC #87BC4D #4DBC83
monochromatic
#662768 #923894 #BA4DBC #CB79CD #DCA6DD

Accessibility & contrast

On white

4.31
#BA4DBC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#BA4DBC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4DBC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4DBC#FFFFFF#000000##000000
##BA4DBC1.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F71BF
Deuteranopia (green-blind)
#657FB9
Tritanopia (blue-blind)
#BF5B7D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #ba4dbc;
/* rgb */ color: rgb(186, 77, 188);
/* oklch */ color: oklch(60.3% 0.193 326.9);
Tailwind
colors: {
  custom: {
    50: '#d285d0',
    500: '#ba4dbc',
    950: '#000000',
  },
}
SCSS
$custom: #ba4dbc;
$custom-light: #d285d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4dbc",
  "rgb": {
    "r": 186,
    "g": 77,
    "b": 188
  },
  "hsl": {
    "h": 298.919,
    "s": 45.306,
    "l": 51.961
  },
  "oklch": {
    "l": 0.6034,
    "c": 0.19311,
    "h": 326.9
  },
  "luminance": 0.19378
}

Semantic roles & 50–950 ramp

primary
#BA4DBC
secondary
#9BCB9A
accent
#D55355
background
#FDF8FC
surface
#FAF0F9
border
#D3CBD2
text
#140C14
muted
#837D82

Preview Lab

Preview with #BA4DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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