#BA74CB#BA74CB

#BA74CB is a light, vivid purple. Relative luminance 0.272; OKLCH L 66.5% C 0.145 H 319.6°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#BA74CB
RGBrgb(186, 116, 203)
HSLhsl(288, 46%, 63%)
HSVhsv(288, 43%, 80%)
CMYKcmyk(8.4%, 42.9%, 0%, 20.4%)
CIE-LABlab(59.20, 41.85, -34.12)
CIE-LCHlch(59.20, 53.99, 320.81°)
OKLaboklab(66.53% 0.1104 -0.094)
OKLCHoklch(66.53% 0.145 319.6)
XYZxyz(37.2732, 27.2429, 59.7833)
Luminance0.2724 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA74CB #85CB74
analogous
#8F74CB #BA74CB #CB74B0
triadic
#BA74CB #CBBA74 #74CBBA
tetradic
#BA74CB #CB8F74 #85CB74 #74B0CB
square
#BA74CB #CB8F74 #85CB74 #74B0CB
split-complementary
#BA74CB #B0CB74 #74CB8F
monochromatic
#7E368F #A447BA #BA74CB #D0A1DC #E6CDEC

Accessibility & contrast

On white

3.26
#BA74CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#BA74CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA74CB
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA74CB#FFFFFF#000000##000000
##BA74CB1.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#678ACE
Deuteranopia (green-blind)
#7A91C8
Tritanopia (blue-blind)
#BB7F96
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba74cb;
/* rgb */ color: rgb(186, 116, 203);
/* oklch */ color: oklch(66.5% 0.145 319.6);
Tailwind
colors: {
  custom: {
    50: '#d09edb',
    500: '#ba74cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba74cb;
$custom-light: #d09edb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba74cb",
  "rgb": {
    "r": 186,
    "g": 116,
    "b": 203
  },
  "hsl": {
    "h": 288.276,
    "s": 45.55,
    "l": 62.549
  },
  "oklch": {
    "l": 0.66533,
    "c": 0.14499,
    "h": 319.6
  },
  "luminance": 0.27242
}

Semantic roles & 50–950 ramp

primary
#BA74CB
secondary
#C4DDBE
accent
#B92D48
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#140E15
muted
#827E83

Preview Lab

Preview with #BA74CB

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

Preview Lab → · Contrast checker → · Palette generator →

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