#BA74DB#BA74DB

#BA74DB is a light, vivid purple. Relative luminance 0.280; OKLCH L 67.3% C 0.162 H 314.1°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#BA74DB
RGBrgb(186, 116, 219)
HSLhsl(281, 59%, 66%)
HSVhsv(281, 47%, 86%)
CMYKcmyk(15.1%, 47%, 0%, 14.1%)
CIE-LABlab(59.93, 45.15, -41.99)
CIE-LCHlch(59.93, 61.65, 317.08°)
OKLaboklab(67.32% 0.113 -0.1167)
OKLCHoklch(67.32% 0.162 314.1)
XYZxyz(39.2792, 28.0453, 70.3482)
Luminance0.2804 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74DB #95DB74
analogous
#8674DB #BA74DB #DB74C8
triadic
#BA74DB #DBBA74 #74DBBA
tetradic
#BA74DB #DB8674 #95DB74 #74C8DB
square
#BA74DB #DB8674 #95DB74 #74C8DB
split-complementary
#BA74DB #C8DB74 #74DB86
monochromatic
#812CA9 #A243CE #BA74DB #D2A5E8 #EAD5F4

Accessibility & contrast

On white

3.18
#BA74DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#BA74DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74DB
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74DB#FFFFFF#000000##000000
##BA74DB1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F8CDF
Deuteranopia (green-blind)
#7292D8
Tritanopia (blue-blind)
#B8839D
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba74db;
/* rgb */ color: rgb(186, 116, 219);
/* oklch */ color: oklch(67.3% 0.162 314.1);
Tailwind
colors: {
  custom: {
    50: '#d19ee6',
    500: '#ba74db',
    950: '#000000',
  },
}
SCSS
$custom: #ba74db;
$custom-light: #d19ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74db",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 219
  },
  "hsl": {
    "h": 280.777,
    "s": 58.857,
    "l": 65.686
  },
  "oklch": {
    "l": 0.67318,
    "c": 0.16244,
    "h": 314.1
  },
  "luminance": 0.28044
}

Semantic roles & 50–950 ramp

primary
#BA74DB
secondary
#CFE7C4
accent
#C61F55
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA74DB

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

Preview Lab → · Contrast checker → · Palette generator →

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