#BA4EDB#BA4EDB

#BA4EDB is a light, highly saturated purple. Relative luminance 0.210; OKLCH L 62.2% C 0.220 H 317.4°. Best body text is #000000 at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA4EDB
RGBrgb(186, 78, 219)
HSLhsl(286, 66%, 58%)
HSVhsv(286, 64%, 86%)
CMYKcmyk(15.1%, 64.4%, 0%, 14.1%)
CIE-LABlab(52.95, 63.74, -53.05)
CIE-LCHlch(52.95, 82.93, 320.23°)
OKLaboklab(62.2% 0.1616 -0.1486)
OKLCHoklch(62.2% 0.22 317.4)
XYZxyz(35.7584, 21.0038, 69.1746)
Luminance0.2100 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4EDB #6FDB4E
analogous
#734EDB #BA4EDB #DB4EB6
triadic
#BA4EDB #DBBA4E #4EDBBA
tetradic
#BA4EDB #DB734E #6FDB4E #4EB6DB
square
#BA4EDB #DB734E #6FDB4E #4EB6DB
split-complementary
#BA4EDB #B6DB4E #4EDB73
monochromatic
#761E91 #9F28C4 #BA4EDB #CE81E5 #E2B4F0

Accessibility & contrast

On white

4.04
#BA4EDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.20
#BA4EDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4EDB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4EDB#FFFFFF#000000##000000
##BA4EDB1.004.045.205.20
#FFFFFF4.041.0021.0021.00
#0000005.2021.001.001.00
##0000005.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1978DF
Deuteranopia (green-blind)
#5282D8
Tritanopia (blue-blind)
#B9678E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #ba4edb;
/* rgb */ color: rgb(186, 78, 219);
/* oklch */ color: oklch(62.2% 0.220 317.4);
Tailwind
colors: {
  custom: {
    50: '#d287e7',
    500: '#ba4edb',
    950: '#000000',
  },
}
SCSS
$custom: #ba4edb;
$custom-light: #d287e7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4edb",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 219
  },
  "hsl": {
    "h": 285.957,
    "s": 66.197,
    "l": 58.235
  },
  "oklch": {
    "l": 0.62202,
    "c": 0.21956,
    "h": 317.4
  },
  "luminance": 0.21002
}

Semantic roles & 50–950 ramp

primary
#BA4EDB
secondary
#B3DEA6
accent
#E93F67
background
#FDF8FE
surface
#FAF0FC
border
#D3CBD5
text
#140C16
muted
#837D84

Preview Lab

Preview with #BA4EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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