#BA7CD2#BA7CD2

#BA7CD2 is a light, vivid purple. Relative luminance 0.295; OKLCH L 68.2% C 0.139 H 316.1°. Best body text is #000000 at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#BA7CD2
RGBrgb(186, 124, 210)
HSLhsl(283, 49%, 65%)
HSVhsv(283, 41%, 82%)
CMYKcmyk(11.4%, 41%, 0%, 17.6%)
CIE-LABlab(61.23, 38.95, -34.90)
CIE-LCHlch(61.23, 52.30, 318.14°)
OKLaboklab(68.16% 0.1001 -0.0963)
OKLCHoklch(68.16% 0.139 316.1)
XYZxyz(39.0885, 29.5086, 64.5969)
Luminance0.2951 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7CD2 #94D27C
analogous
#8F7CD2 #BA7CD2 #D27CBF
triadic
#BA7CD2 #D2BA7C #7CD2BA
tetradic
#BA7CD2 #D28F7C #94D27C #7CBFD2
square
#BA7CD2 #D28F7C #94D27C #7CBFD2
split-complementary
#BA7CD2 #BFD27C #7CD28F
monochromatic
#81369D #A24EC2 #BA7CD2 #D2AAE2 #EAD7F1

Accessibility & contrast

On white

3.04
#BA7CD2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.90
#BA7CD2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7CD2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7CD2#FFFFFF#000000##000000
##BA7CD21.003.046.906.90
#FFFFFF3.041.0021.0021.00
#0000006.9021.001.001.00
##0000006.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E90D5
Deuteranopia (green-blind)
#7E96CF
Tritanopia (blue-blind)
#B9879D
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba7cd2;
/* rgb */ color: rgb(186, 124, 210);
/* oklch */ color: oklch(68.2% 0.139 316.1);
Tailwind
colors: {
  custom: {
    50: '#d0a3e0',
    500: '#ba7cd2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7cd2;
$custom-light: #d0a3e0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7cd2",
  "rgb": {
    "r": 186,
    "g": 124,
    "b": 210
  },
  "hsl": {
    "h": 283.256,
    "s": 48.864,
    "l": 65.49
  },
  "oklch": {
    "l": 0.68155,
    "c": 0.13892,
    "h": 316.1
  },
  "luminance": 0.29508
}

Semantic roles & 50–950 ramp

primary
#BA7CD2
secondary
#CFE3C6
accent
#BC2952
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA7CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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